FAQ

Search Discussions

171 discussions - 670 posts

  • Simple question to answer, I hope. I am running on an HP-UX system, and would like to retrive the UNIX system's host-id (name of box). Is there a function to do this?
    Bret GoodfellowBret Goodfellow
    Jun 9, 2005 at 7:35 pm
    Jun 10, 2005 at 8:12 pm
  • This isn't going to get them all; it says to match (between word boundaries) "I" or "II" or any three non-newlines. So it will catch "I", "II", "III", and "VII". It will also catch "I" where it's a ...
    Jay SavageJay Savage
    Jun 3, 2005 at 2:27 pm
    Jun 6, 2005 at 3:48 pm
  • Hi, I'm trying to use open3 to control input to an external program (in this case gpg). I would use Expect, but I need to use packages that are installed as standard with perl as this script will be ...
    D. J. BirkettD. J. Birkett
    Jun 3, 2005 at 7:35 am
    Jun 15, 2005 at 1:15 pm
  • Hi folks, I'm looking for some advice on the best practice when using external files to contain data. I work in a contact centre and have created a web based stats viewer for my team (it's very ...
    DaleDale
    Jun 12, 2005 at 4:32 pm
    Jun 20, 2005 at 3:39 pm
  • Hi Perlers, I have a file as follows: #block1 aaa aaa #block2 bbb bbb #block3 ccc ccc and i want to append(or i should say merge) these blocks and get a file like this: aaabbbccc aaabbbccc how can ...
    Aditi GuptaAditi Gupta
    Jun 22, 2005 at 1:52 pm
    Jun 24, 2005 at 10:55 am
  • Hi All Prob: I want to convert all the elememts of an array to ascalor variable that I can use latter on in my code e.g. my @array=qw/balli johney bobby/; now here i need 3 different variable with ...
    ShokerShoker
    Jun 10, 2005 at 12:06 am
    Jun 10, 2005 at 8:20 pm
  • Is it possible to use s/foo/bar in another way to allow replacement of large blocks of text with spaces, quotes, and double quotes? Is there a better way? Thank you, Cy Kurtz
    Cy KurtzCy Kurtz
    Jun 7, 2005 at 12:45 pm
    Jun 8, 2005 at 8:27 am
  • Hello everyone, Here and there on the web I encounter claims that the do {} operator is depreciated. However I find it convenient to do things like: eval { some stuff } or do { some multiline error ...
    Peter RabbitsonPeter Rabbitson
    Jun 30, 2005 at 1:55 pm
    Jun 30, 2005 at 5:45 pm
  • Can anyone help me with this match: #!/usr/bin/perl use strict; use warnings; my $talxkeylog =qq(/home/gpghrp/.gnupg/keys/log/talxkeyupd.log); open (FH, "+ $talxkeylog") or warn "unable to open file ...
    DbsmithDbsmith
    Jun 28, 2005 at 2:00 pm
    Jun 28, 2005 at 4:54 pm
  • Hi all, quite interesting, how you would write this without $temp: use strict; use warnings; my $first = 'B'; my $second = 'a'; ($first, $second) = ($second , $first); print $first, "\n"; print ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Jun 18, 2005 at 4:57 pm
    Jun 20, 2005 at 9:03 pm
  • Argument passing between perl and C function. There is C function in a OLE server: What kind of variable should I pass to this function? ...
    J aperlhJ aperlh
    Jun 2, 2005 at 2:44 am
    Jun 7, 2005 at 6:33 pm
  • Hello all, Is there a way you read input from a script line by line. I'd rather parse output line by line than do: @out = `script.sh`; which seems sloppy. Or is that the best way? TIA
    Tielman Koekemoer \(TNE\)Tielman Koekemoer \(TNE\)
    Jun 9, 2005 at 7:09 am
    Jul 18, 2005 at 3:26 am
  • Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files ...
    Karyn WilliamsKaryn Williams
    Jun 14, 2005 at 11:27 pm
    Jun 15, 2005 at 9:42 pm
  • I am dinking around with perl for bioinformatics purposes. I have written a small perl script that reads FASTA formatted sequence files and searches the sequence therein for user-entered sequences. ...
    Praedor AtrebatesPraedor Atrebates
    Jun 14, 2005 at 9:16 pm
    Jun 15, 2005 at 2:33 pm
  • Hi all, I noticed strange behavior with die; Here is snippet: use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize- new(); $mech- agent_alias('Windows IE 6'); $mech- get( ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Jun 5, 2005 at 8:32 pm
    Jun 6, 2005 at 11:08 am
  • I am trying to send the output of a mysql query to a two dimensional array. This is what I've tried using push. while (@results = $sth- fetchrow_array ()) { $x = $results[0]; $y = $results[1]; push ...
    AhuberAhuber
    Jun 3, 2005 at 6:43 pm
    Jun 5, 2005 at 10:28 pm
  • Often when debugging my scripts I get: Use of uninitialized value in print at line 52. Use of uninitialized value in print at line 52. Use of uninitialized value in print at line 52. Use of ...
    Bryan R HarrisBryan R Harris
    Jun 30, 2005 at 4:14 pm
    Jul 6, 2005 at 6:46 pm
  • I am attempting to write a perl script to allow users to plot functions using gnuplot through a web page. It seems to work fine unless the function has any additions in it. For example, "x+1" plots ...
    Gary ParkerGary Parker
    Jun 19, 2005 at 8:16 am
    Jun 28, 2005 at 2:02 pm
  • Hi I've written a perl program which, when executed, fork()'s into the background, doing it's job, so that the ssh session which executed it can be closed. The dilemma I have is the program crashes ...
    DanDan
    Jun 24, 2005 at 5:29 pm
    Jun 27, 2005 at 9:51 pm
  • All right, I know how to do this in REXX because there is a word() function, but how do I do this in Perl. I want to read in one record at a time, that has space-delimited fields. There may be ...
    Bret GoodfellowBret Goodfellow
    Jun 22, 2005 at 9:11 pm
    Jun 23, 2005 at 6:53 am
  • Hi, can anyone please explain? In the following code snippet, what is the meaning of the pattern match s/^.*\/// $prog = $0; $prog =~ s/^.*\/// i did not get details when i searched in google thanks, ...
    MEENA SELVAMMEENA SELVAM
    Jun 20, 2005 at 3:01 am
    Jun 20, 2005 at 10:29 am
  • Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? Siegfried
    Siegfried HeintzeSiegfried Heintze
    Jun 17, 2005 at 10:54 pm
    Jun 18, 2005 at 6:53 pm
  • Does Perl have the equivalent of a case statement or a switch statement. I'm trying to avoid a bunch of "if-then" statements. I'm seeing posts regarding "use switch", but I want to make sure it's not ...
    Ron SmithRon Smith
    Jun 11, 2005 at 9:11 pm
    Jun 12, 2005 at 4:18 pm
  • I have a strange problem where a database handle is being destroyed for no apparent reason. My initial idea was to parse some xml, and translate it into a database. Deleting line after line of code I ...
    Peter RabbitsonPeter Rabbitson
    Jun 5, 2005 at 11:41 pm
    Jun 11, 2005 at 2:05 pm
  • Hi, I have a problem with assigning value to string. I'll be really grateful if someone will help me. use strict; use warnings; use Cwd; use Term::ANSIColor qw(:constants); ...
    Vladimir LembergVladimir Lemberg
    Jun 7, 2005 at 9:13 pm
    Jun 8, 2005 at 2:23 am
  • Hi I wrote a program using send mail for a mail application. In the server I was testing it sendmail was installed in /usr/bin/sendmail. But in a different server the path is different. Isn;t there a ...
    Anish Kumar KAnish Kumar K
    Jun 4, 2005 at 4:39 am
    Jun 4, 2005 at 11:35 am
  • Hi, perl5 (revision 5 version 8 subversion 5) on redhat fedora 3 I have been trying to create a list of home directories from a list. The directory name comes straight from the list but I seem to be ...
    Dermot PaikkosDermot Paikkos
    Jun 1, 2005 at 9:09 am
    Jun 2, 2005 at 12:58 am
  • Sorry, but I have two subroutines with the same name which is fine because I have not had a need to use the hashes which these two similar subroutines created. How do I run the subroutine and ...
    Wagner, David --- Senior Programmer Analyst --- WGOWagner, David --- Senior Programmer Analyst --- WGO
    Jun 27, 2005 at 11:59 pm
    Jun 28, 2005 at 7:24 pm
  • Noting that this list is more oriented towards beginner questions/general inquiry, but not having found a perl.org list more geared towards advanced and/or OOPerl questions, I'm wondering: A whether ...
    Scott R. GodinScott R. Godin
    Jun 27, 2005 at 6:08 pm
    Jun 28, 2005 at 5:17 pm
  • Hello Fellow Perlites, I'm having difficulty parsing a file and could use some help here. I've attached my code, output file, and sample job run. Basically, I want to read an Oracle TNS file ...
    Jeff WestmanJeff Westman
    Jun 20, 2005 at 9:30 pm
    Jun 23, 2005 at 9:01 am
  • Hi everybody, I've been doing some general perl coding(not too complicated) for past some time but now i want to learn the object oriented way of programming. I've several books including Perl ...
    Aditi GuptaAditi Gupta
    Jun 20, 2005 at 8:47 am
    Jun 20, 2005 at 11:26 pm
  • hi, I have been lately reading a lot of stuff about perl catalyst with MVC I am still not clear about practical use of MVC's Can someone provide pointers about MVC and where they are best used ? ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Jun 14, 2005 at 2:39 pm
    Jun 14, 2005 at 9:16 pm
  • Hi I have some tab delimited text data like ID In Out Day 1 5 2 1 2 4 9 2 3 3 3 2 4 6 7 3 5 5 0 5 6 7 9 3 7 8 9 4 8 6 6 4 I want to perform sorting by In, Out and so on. I also want to find sum of in ...
    Vijay Kumar AdhikariVijay Kumar Adhikari
    Jun 14, 2005 at 11:55 am
    Jun 14, 2005 at 2:46 pm
  • that Hi John (we're not worthy - Wayne's World) ;-) I've just come back to your post above (30/05/05) and I've tried to get the internal workings of the code to agree with my brain. Please help! ...
    Tielman Koekemoer \(TNE\)Tielman Koekemoer \(TNE\)
    Jun 13, 2005 at 11:53 am
    Jun 13, 2005 at 7:04 pm
  • Hi, I need to create a cgi program that will parse an xml file for output. I haven't began to write anything yet but had a look at the xml file I am going to work with. The snippet below contains 3 ...
    Dermot PaikkosDermot Paikkos
    Jun 8, 2005 at 12:11 pm
    Jun 9, 2005 at 10:36 am
  • Hi, I have a below hash (printed using Dumper). $VAR1 = { 'Technologies':'Optical':'Dense Wavelength Division Multiplexing (DWDM)' }; $VAR2 = { 'typeInfoSortKey' = '', 'mdfName' = 'Linear with ...
    MallikMallik
    Jun 8, 2005 at 3:30 am
    Jun 8, 2005 at 9:37 am
  • All, I've written a simple daemon to launch processes, and I check for the exit status of those processes. According to "Programming Perl", I need to use the following: use POSIX qw(:sys_wait_h); ...
    Bryan R HarrisBryan R Harris
    Jun 7, 2005 at 12:07 am
    Jun 7, 2005 at 7:16 pm
  • Hi, I have a weird problem in perl. I want to read each line from a file, chomp off the newline character, append 6694 spaces to the end of each line and then output the line into a new file. The ...
    Nupur PandeNupur Pande
    Jun 3, 2005 at 4:18 pm
    Jun 6, 2005 at 1:39 pm
  • Hi, I'd like to convert a text file to tex. One thing I encounter is that there are lots of dialogues, and I want to transform " " to `` '' properly. I try to use s/"([^"]*)"/``$1"/gs but it doesn't ...
    Zeng NanZeng Nan
    Jun 5, 2005 at 8:21 am
    Jun 6, 2005 at 12:41 pm
  • People of the Perl, I have a need to develop some logic to automatically pick up a publc key for my gpg keyring. I will use cURL ( client for URL lookups ) language for the actual download , but the ...
    DbsmithDbsmith
    Jun 23, 2005 at 4:14 pm
    Jun 30, 2005 at 1:57 pm
  • Hi, I need to ssh to a remote machine, run a command and get the output. Is there some modules that can help. TIA Vijay -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: ...
    Vijay Kumar AdhikariVijay Kumar Adhikari
    Jun 22, 2005 at 8:27 am
    Jun 22, 2005 at 5:24 pm
  • How can i automatically detect unused variables in Perl? i delcrae variables like: my $abc; but don't use $abc within the subroutine. how can i get perl to autmatically tell me that $abc is not being ...
    Troy STroy S
    Jun 8, 2005 at 12:14 pm
    Jun 8, 2005 at 7:26 pm
  • I am learning about perl modules and am having a little trouble understanding the "blessing" of an object. For instance: bless($self, $type); What does this do? Thanks, rs. -- It's all a matter of ...
    RadhikaRadhika
    Jun 7, 2005 at 6:44 pm
    Jun 8, 2005 at 4:40 pm
  • I am trying to build an array that can be used with GD::Graph to show the graphical representation of a MySQL query. This module only takes in an AoA like this: @data = ([1,2,3,4],[10,20,30,40]); # ...
    AhuberAhuber
    Jun 5, 2005 at 11:05 pm
    Jun 6, 2005 at 4:22 pm
  • Perlers, I'm working on a script that iterates over a log file looking for known hosts so that their messages can be grouped in a summary report. However, when I run the script, the array I create ...
    Ryan FrantzRyan Frantz
    Jun 28, 2005 at 3:01 pm
    Jul 6, 2005 at 8:03 pm
  • I have the following line of code: my $id = async { &PopulateIndustryCompanyJobs($sIndustryName, $nThread); $qCompleted- enqueue($sIndustryName); } It causes this error: Prototype mismatch: sub ...
    Siegfried HeintzeSiegfried Heintze
    Jun 30, 2005 at 2:21 am
    Jun 30, 2005 at 1:23 pm
  • Hi List, Am looking for some messaging module, using which I can pass message between, perl programs. Looked at search CPAN, and found ebXML. Any comments on ebXML, or any other messaging module will ...
    Manish SapariyaManish Sapariya
    Jun 28, 2005 at 4:36 am
    Jun 29, 2005 at 4:11 pm
  • (I'm mailing this after posting through Google Groups. I didn't see it get posted, so I'm sending email instead. I hope this doesn't double post. If it does, I'm sorry.) Hi Perl folks, I am trying to ...
    Larsen, Errin M HMMA/ITLarsen, Errin M HMMA/IT
    Jun 27, 2005 at 7:44 pm
    Jun 28, 2005 at 3:51 pm
  • My perl program snas.pl uses SF:Logger.pm which is available in /usr/local/sf/lib/perl/5.8.3/SF. I have added this directory in the path (.cshrc and .tshrc). I am running as root, and I get the cant ...
    MEENA SELVAMMEENA SELVAM
    Jun 23, 2005 at 4:37 am
    Jun 27, 2005 at 10:33 pm
  • Grr... Arg... Hello all, I'm working on my first Perl/CGI database app and run into a bit of a snag: http://myserver/lseid.cgi?LeaseOPID=A&DT89&theCmd=EditIt this line finds the right data however, ...
    Scott TaylorScott Taylor
    Jun 24, 2005 at 7:50 pm
    Jun 24, 2005 at 11:22 pm
Group Navigation
period‹ prev | Jun 2005 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions171
posts670
users155
websiteperl.org

155 users for June 2005

Chris Devers: 40 posts John W. Krahn: 40 posts Wiggins d'Anconia: 38 posts Ing. Branislav Gerzo: 31 posts Jeff 'japhy' Pinyan: 22 posts Siegfried Heintze: 19 posts Dave Gray: 18 posts Thomas Bätzler: 18 posts Zentara: 18 posts Offer Kaye: 15 posts Wagner, David --- Senior Programmer Analyst --- WGO: 13 posts Peter Rabbitson: 12 posts Jay Savage: 11 posts MEENA SELVAM: 11 posts Xavier Noria: 11 posts J aperlh: 10 posts Randal L. Schwartz: 10 posts Dbsmith: 8 posts Bob Showalter: 8 posts Tielman Koekemoer \(TNE\): 8 posts
show more
Archives