FAQ

Search Discussions

619 discussions - 2,237 posts

  • Maybe I should unsubscribe and disable this account before I hit send, but I have to defend what I wrote. I certainly never expected to be cursed at for posting an opinion response with justification ...
    JohnJohn
    Feb 10, 2002 at 10:19 pm
    Feb 12, 2002 at 8:22 pm
  • Since this is a beginners list, I thought I would be allowed to ask this question. Can there be multiple values for hash keys, or just one? The reason I am asking is that I am working on a ...
    Balint, JessBalint, Jess
    Feb 1, 2002 at 5:50 pm
    Feb 7, 2002 at 10:19 pm
  • Hi, I have an array ---- @array = qw(alf bert charlie 4) and I want a string that contains this value < 'alf','bert','charlie','4' with the single quotes and commas. I know I can do this $string = ...
    Angus LaycockAngus Laycock
    Feb 27, 2002 at 10:23 pm
    Feb 28, 2002 at 12:43 am
  • Hi everyone, I have a set of functions that give numeric results, and I need to compare them and choose the maximal value. Is there any simple way of finding max? Hans -- Hans E. E. Holtan Graduate ...
    Hans HoltanHans Holtan
    Feb 13, 2002 at 1:23 am
    Feb 14, 2002 at 9:26 am
  • How do I replace the letter M with 20 spaces. s/M/\s[20]/; # dosen't seem to work :-( Regards Stuart Clark
    Stuart ClarkStuart Clark
    Feb 5, 2002 at 4:47 am
    Feb 7, 2002 at 9:21 pm
  • Hello all. I am getting wierd errors on the following piece of code. 95: for( 0..$#vars ) { 96: if( defined( $vars[$_] ) ) { 97: $freqidx{$key}[$_] += $fields[$vars[$_]]; 98: } 99: } @vars are all ...
    Balint, JessBalint, Jess
    Feb 8, 2002 at 6:08 pm
    Feb 8, 2002 at 7:31 pm
  • I need to replace all the occurances of one thing with another. This is simple enough, except that I am working with a list variable, rather than a scalar. @body =~ s/foo/bar/; give an error and for ...
    LysanderLysander
    Feb 4, 2002 at 6:13 pm
    Feb 7, 2002 at 4:34 pm
  • Use the split command. open(INFILE,"hobbitbooks.txt"); while(INFILE){ @results = split /\"/,$_; print $results[1]; } -----Original Message----- From: Booher Timothy B 1stLt AFRL/MNAC Sent: Friday, ...
    Timothy JohnsonTimothy Johnson
    Feb 1, 2002 at 11:33 pm
    Feb 4, 2002 at 9:05 am
  • I have just started learning perl a day ago. Can anybody guide me on how to start? I am really interested in learning the language AMRINDER Join the world’s largest e-mail service with MSN Hotmail. ...
    Amrinder singhAmrinder singh
    Feb 14, 2002 at 12:25 pm
    Feb 15, 2002 at 3:00 pm
  • I'd like a few volunteers to take a test that I've put together for an "Introduction to Perl" class that I teach. If you are a beginner or recent "graduate" of an intro course and have a few minutes, ...
    Michael R. WolfMichael R. Wolf
    Feb 2, 2002 at 6:14 am
    Feb 11, 2002 at 1:36 pm
  • Speaking of FAQs, is there a Perl FAQ...maybe something from this newsgroup? I have found the FAQS on www.perl.com to be completely useless to a beginner. Russell J Foster Subject, Wills, & Company ...
    Russ FosterRuss Foster
    Feb 1, 2002 at 10:22 pm
    Feb 6, 2002 at 3:31 am
  • Hi there, I am looking for a perl module that can be used to make phone calls using a voice modem so when the phone is picked up the user can hear a recorded message (mp3 file). Any idea where i can ...
    Joe EchavarriaJoe Echavarria
    Feb 28, 2002 at 3:26 am
    Feb 28, 2002 at 9:17 pm
  • When I run the following script, I get the following error. Being new to perl, I am having trouble identifying where the error is at. Thanks for your help. Error: Use of uninitialized value at ...
    Slhgkh5Slhgkh5
    Feb 25, 2002 at 6:15 pm
    Feb 26, 2002 at 12:50 am
  • I've been wanting to send mail from some of my scripts, so I thought I'd see how to get it to work. I chose to use Mail::Sender and am running Perl 5.005_03 from ActiveState build 522 (I know, it's ...
    murphy, daniel (BMC Eng)murphy, daniel (BMC Eng)
    Feb 15, 2002 at 2:51 pm
    Feb 15, 2002 at 9:37 pm
  • Hi all, Just wondering if someone could direct me in the right direction... I am trying to find the number of elements in an array?? any clues gratefully accepted. thanks as always, Chris.
    Chris ZampeseChris Zampese
    Feb 10, 2002 at 12:03 pm
    Feb 14, 2002 at 1:59 am
  • Hello, I have perused the archives but can't find an answer to my problem. I have built a perl program, I use DBI.pm in it. Upon running the program I get the following return: "Can't locate loadable ...
    Eric JonesEric Jones
    Feb 8, 2002 at 8:29 pm
    Feb 8, 2002 at 10:21 pm
  • Whenever I've had to execute system or shell commands, I use the backtick operator, the system command, or filehandle half-pipes (or whatever they are called :). And I've always seen these ...
    Christopher SolomonChristopher Solomon
    Feb 7, 2002 at 6:48 pm
    Feb 8, 2002 at 2:21 am
  • 10

    ping

    Hi, I am having difficulty getting the Net::Ping module to work properly. I am using ActivePerl 5.6.1.631 on a win32 platform. I can ping a server in a dos prompt ok, but when I try to get the Perl ...
    LanceoLanceo
    Feb 22, 2002 at 9:18 am
    Feb 26, 2002 at 7:02 pm
  • hi again all, Sorry to keep approaching you with my regex problems, but I really havn't had time to read up on them yet. If I have a variable... $var = "dfasdf"; Is it possible to get a regex to say ...
    Daniel FalkenbergDaniel Falkenberg
    Feb 21, 2002 at 3:55 am
    Feb 24, 2002 at 7:25 am
  • ActiveState ActivePerl should register the file extension so that you just have to type PerlFile.pl to launch it. -----Original Message----- From: Booher Timothy B 1stLt AFRL/MNAC Sent: Friday, ...
    Timothy JohnsonTimothy Johnson
    Feb 1, 2002 at 10:51 pm
    Feb 13, 2002 at 3:20 pm
  • Hello, Can anyone stand me up on this.... I keep getting a warning message: "Value of <HANDLE construct can be "0"; test with defined() at mk_LNPTYPE_counts line 65535" What does this mean? What does ...
    Mike SilverMike Silver
    Feb 6, 2002 at 8:04 pm
    Feb 6, 2002 at 10:21 pm
  • i am sending @array a directory (i.e. example /usr/dw5) which contains a lot of files and folders (directories). (i have already checked the value of @array and $dup and they are as desired.) What i ...
    David wrightDavid wright
    Feb 4, 2002 at 11:50 pm
    Feb 5, 2002 at 4:11 pm
  • Hello everyone. My ISP doesn't have /etc/protocols world readable, and so IO::Socket doesn't work, as getprotobyname and getprotobynumber fail. I am using the Mail::POP3Client wrapper. I am trying to ...
    Paul MurphyPaul Murphy
    Feb 27, 2002 at 10:38 am
    Feb 28, 2002 at 5:03 pm
  • Hi guys, I Haven't written in this forum in so long. =) Just wondering if there are any other software out there that can make my perlscript independent of the Perl interpreter. Thanks Eric
    Eric WangEric Wang
    Feb 6, 2002 at 12:32 am
    Feb 28, 2002 at 12:21 am
  • Hi there, I am getting the following: cannot execute ftpscr Illegal seek at ./getfile.pl line 31. from a simple Perl script (below). The system command is returning the error and the pathname points ...
    Tony McGuinnessTony McGuinness
    Feb 19, 2002 at 12:06 pm
    Feb 21, 2002 at 11:17 am
  • I found some code, on the net, on access an INI file... I have modified it to try and assign certain values out. Here is the code: my ($iniFile, $UserID, $Tester, $DNS1, $DNS2, $pwd); $iniFile = ...
    ChrisChris
    Feb 15, 2002 at 2:21 pm
    Feb 18, 2002 at 5:00 pm
  • I have a block of code which determines what subroutine to call and what parameters to pass, I want to put the statement to execute in a variable. At the end of the block I would like to output/print ...
    JohnJohn
    Feb 7, 2002 at 11:14 pm
    Feb 8, 2002 at 7:13 pm
  • I'm hoping to get a small study group together that are interested in making some serious progress learning perl. I also need a few good volunteers willing to torture the group with some challenging ...
    Kevin WerckmanKevin Werckman
    Feb 5, 2002 at 7:22 pm
    Feb 6, 2002 at 4:09 pm
  • Ok, I figured that much, but I guess my question is this: Is there a pressing need to scope a predefined variable like $_? How could this adversely affect a program? (I'm not trying to be a smart ...
    Timothy JohnsonTimothy Johnson
    Feb 4, 2002 at 11:04 pm
    Feb 5, 2002 at 6:29 am
  • Hello, I am trying to change all files in a directory that contain the strings Satellite satellite and SATELLITE that I need to change to target, Target and TARGET. Because many of these are C++ ...
    Booher Timothy B 1stLt AFRL/MNACBooher Timothy B 1stLt AFRL/MNAC
    Feb 1, 2002 at 3:21 pm
    Feb 1, 2002 at 7:13 pm
  • Hi team, I am unix admin trying to learn perl. How is the book "LEARNING PERL BY EXAMPLE" by Ellie Quigley regs Anidil Rajendran (raj) Netliant,Inc 3600,Brigde Parkway Suite 102 Redwood City,CA ...
    Anidil Rajendran-RajAnidil Rajendran-Raj
    Feb 23, 2002 at 12:27 am
    Mar 3, 2002 at 9:21 am
  • Can anyone explain to me why the output of the script called within this script prints the output to the screen and not to the client connected to the socket. Many thanks #!/usr/local/bin/perl -w use ...
    Scott L RyanScott L Ryan
    Feb 5, 2002 at 10:30 am
    Feb 27, 2002 at 10:21 am
  • is there a way to share uncompiled perl scripts? that is, to include the subroutines of one script file into another script file. failing that, can i easily compile a perl script and use it in a ...
    Bob ackermanBob ackerman
    Feb 23, 2002 at 1:02 am
    Feb 23, 2002 at 1:14 pm
  • how to convert array to integer $array[0]=5 $array[1]=6 $array[2]=7 $array[3]=8 change to integer 5678 for calculate 5678+2=5680 thanks,
    KittiKitti
    Feb 22, 2002 at 11:51 am
    Feb 23, 2002 at 4:27 am
  • Hi, Can I not do something like... #!/usr/local/bin/perl use strict; my $myname='hi There'; system "ls","-la"; system "echo","$myname"; qx{awk '{ if ($myname==$1) { do something } else print $2,$1 ...
    Bhanu PrakashBhanu Prakash
    Feb 22, 2002 at 7:05 am
    Feb 22, 2002 at 2:38 pm
  • Hi guys I was wondering if anyone knows how to execute Unix commands in a Perl Script ? I would be most grateful if you could let me know Thanks in advance Tony
    Ho, TonyHo, Tony
    Feb 20, 2002 at 4:53 pm
    Feb 21, 2002 at 3:25 pm
  • Is it possible to have multiple __DATA__ entries in a program. I can seem to find a way to end __DATA__, and @array is getting everything. How to I end __DATA__? Like: @array = <DATA ; @array1 = ...
    ZentaraZentara
    Feb 15, 2002 at 5:07 pm
    Feb 19, 2002 at 7:17 pm
  • I have string, something like: $String = "aaa bbb: fffd: sdfsdf qweqd: adfsdf qwcdsfs: qwdq qchuti: qwiojd"; Now, I want to extract everything from the start of the string, up through the FIRST colon ...
    Russ FosterRuss Foster
    Feb 14, 2002 at 10:20 pm
    Feb 17, 2002 at 4:11 pm
  • I'm trying to save file permissions with stat, so I can restore permissions back to the file after editing. my $mode = (stat $open)[2]; #and then later chmod $mode,$open; The program is working, but ...
    ZentaraZentara
    Feb 13, 2002 at 10:22 pm
    Feb 15, 2002 at 4:43 pm
  • I have been looking in the Learning Perl book, and cannot find it. I am sure that it is just a terminology thing. In VB {Yeah the old VB again :P) I could do: Select Case $Junk Case 1 Do Something ...
    ChrisChris
    Feb 28, 2002 at 9:45 pm
    Feb 28, 2002 at 10:17 pm
  • hi i would like to know if theres a smart way to unwind a hashtable so that the key / value pairs comes out in the same order as they are in the table. :o) martin --
    Martin A. HansenMartin A. Hansen
    Feb 26, 2002 at 9:16 am
    Feb 26, 2002 at 4:41 pm
  • Small question: I thought when doing a for loop over an array, I can simply do this: for (@array) { # do stuff with $_ } Now I have this situation: for (@array) { # contains a bunch of numbers my ...
    Birgit KellnerBirgit Kellner
    Feb 25, 2002 at 6:28 pm
    Feb 26, 2002 at 12:02 am
  • HI All, Is there a way to Validate the fields of a form? Say I have a text field, and I should show an error to the user if he does not enter anything while submitting the form? Thanks for the help ...
    Bhanu PrakashBhanu Prakash
    Feb 21, 2002 at 10:59 am
    Feb 22, 2002 at 9:25 pm
  • Invoking a Perl script from a TN3270 terminal (Linux/390) Want to issue the shell "clear" command to clear the screen. Using Bash shell 1.14.7(1) "clear" works ok from the command line. Does not ...
    Hewlett PickensHewlett Pickens
    Feb 21, 2002 at 7:45 pm
    Feb 22, 2002 at 1:57 am
  • Hi, I'm new to Perl and am trying to write some cgi programs in Perl. Currently I'm developing a tool in which , when a user submits a form, the input entered by him should be mailed to the address ...
    Bhanu PrakashBhanu Prakash
    Feb 20, 2002 at 4:58 pm
    Feb 21, 2002 at 3:30 pm
  • Greetings; I can get qw to work for things like @n = qw( john jacob jingleheimer schmidt ); but something like @n = qw( $names ); doesn't work. I get the literal string "$names" in @n! What does the ...
    Dennis G. WicksDennis G. Wicks
    Feb 19, 2002 at 5:39 pm
    Feb 19, 2002 at 9:11 pm
  • Hello all. First off, I want to thank everybody on this list who has helped me with with my previous questions. Thank you. I am working with input file of very large size. Sometimes up to and greater ...
    Balint, JessBalint, Jess
    Feb 14, 2002 at 8:18 pm
    Feb 15, 2002 at 10:36 pm
  • I am getting the HTTP result codes and trying to parse just the left most 3 characters: 500 Can't connect to www.1k2k3k4j.com:80 (Bad hostname 'www.1k2k3k4j.com') I only want 500.... In VB I could ...
    ChrisChris
    Feb 14, 2002 at 4:30 pm
    Feb 15, 2002 at 2:22 pm
  • Hi, I've got a problem with the following code... my @hosts=qw( lunar solar venus mars saturn pluto ); foreach (\@hosts) { system("/usr/bin/ssh @hosts $ARGV[0]"); } .... What I'm wanting to do is ...
    Dan radomDan radom
    Feb 13, 2002 at 10:44 pm
    Feb 14, 2002 at 1:52 am
  • Hello - more trouble, I just can't seem to write a program that prints an argument it's passed: My script contains: #not working print "$ARGV\n"; when I run this I get: c:\work.pl "this" c:\ confused ...
    Booher Timothy B 1stLt AFRL/MNACBooher Timothy B 1stLt AFRL/MNAC
    Feb 13, 2002 at 12:37 am
    Feb 13, 2002 at 3:01 pm
Group Navigation
period‹ prev | Feb 2002 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions619
posts2,237
users425
websiteperl.org

425 users for February 2002

Jeff 'japhy' Pinyan: 103 posts Brett W. McCoy: 97 posts Jenda Krynicky: 83 posts John W. Krahn: 72 posts Timothy Johnson: 70 posts Nikola Janceski: 61 posts Chas Owens: 40 posts Jonathan E. Paton: 40 posts Michael Fowler: 37 posts Randal L. Schwartz: 36 posts Wagner-David: 36 posts John Edwards: 35 posts Andrea Holstein: 30 posts Balint, Jess: 30 posts Hanson, Robert: 28 posts Tanton Gibbs: 28 posts Daniel Falkenberg: 25 posts Elaine -HFB- Ashton: 25 posts Jon Molin: 25 posts John: 24 posts
show more
Archives