FAQ

Search Discussions

649 discussions - 2,304 posts

  • Ok, the local Linux guru has proclaimed that C would be faster than Perl. I know C is very effecient so I don't really doubt him, but my question is.... would it make that much of a difference? I ...
    Agustin RiveraAgustin Rivera
    Jan 2, 2002 at 5:10 pm
    Jan 2, 2002 at 9:51 pm
  • A good mailing list to check out for Win32 Perl questions is the perl-ntadmins list at topica.com. -----Original Message----- From: Jeff 'japhy' Pinyan Sent: Thursday, January 24, 2002 8:13 AM To: ...
    Timothy JohnsonTimothy Johnson
    Jan 24, 2002 at 6:14 pm
    Feb 1, 2002 at 3:48 am
  • Folks, need some minor help here.. been looking in the Cookbook for an example to pull the first line from a file.. Regards, Ron
    Yacketta, RonaldYacketta, Ronald
    Jan 8, 2002 at 3:50 pm
    Jan 14, 2002 at 8:24 pm
  • Would anybody tell me what's the different between - and = ? Thanks a lot =)
    Connie ChanConnie Chan
    Jan 27, 2002 at 6:30 am
    Jan 28, 2002 at 5:17 pm
  • -----Message d'origine----- De : mb <asmab1@free.fr À : beginners@perl.org <beginners@perl.org Date : vendredi 4 janvier 2002 21:46 Hi, When compiling the perl cgi code joined to this mail, I had ...
    MbMb
    Jan 4, 2002 at 9:10 pm
    Jan 21, 2002 at 2:43 pm
  • Is there a statistically better solution for generating random numbers than Perl's built in rand() function? I noticed a couple modules on CSPAN, but are they any better? I haven't done a true test ...
    Robert HowardRobert Howard
    Jan 7, 2002 at 9:35 pm
    Jan 14, 2002 at 5:23 pm
  • Hey, first of all happy new years and thanks to all that took their time to reply. Now, I no longer get software errors. Basically, I just am dying to add text to my created png files. My stats: ...
    Joelmon2001Joelmon2001
    Jan 2, 2002 at 4:03 am
    Jan 3, 2002 at 9:20 pm
  • When parsing a text file - what is the best way to skip a "blank" line - when I find the length I get a length of 1 (perhaps the newline). I know that I could chomp($_) and then if(length($_) != 0) ...
    Booher Timothy B 1stLt AFRL/MNACBooher Timothy B 1stLt AFRL/MNAC
    Jan 2, 2002 at 10:19 pm
    Jan 3, 2002 at 2:00 am
  • Might be faster and easier to use tr: tr/0-9//c ; # take complement of what is in string1 and replace w/ string2(null in this case) Wags ;) -----Original Message----- From: McCollum, Frank Sent: ...
    Wagner-DavidWagner-David
    Jan 7, 2002 at 8:19 pm
    Jan 7, 2002 at 10:53 pm
  • I've been trying to understand program 6.21 in the Perl Cookbook, which changes URLs to html links here's a snippet: #!/usr/bin/perl $urls = '{http|telnet|gopher|file|wais|ftp'); $ltrs = '\w'; $gunk ...
    Pam DerksPam Derks
    Jan 3, 2002 at 11:19 pm
    Jan 30, 2002 at 3:39 am
  • Correct me if I'm wrong, the newline character \n is platform dependent. On unix-type it would equal a LF and on Windows it would equal a CRLF. Right? Bompa
    Dave BenwareDave Benware
    Jan 30, 2002 at 1:50 pm
    Jan 31, 2002 at 4:13 pm
  • The following code fails: if ( $i != NULL ) { if ($j < 10) { print DUMPFILE " $j) ", "$value[$i]\n" ; } else { print DUMPFILE " $j) ", "$value[$i]\n" ; } } as I have: use strict; At the very top. But ...
    Chris AndersonChris Anderson
    Jan 26, 2002 at 5:36 pm
    Jan 26, 2002 at 11:12 pm
  • Okay, after reading various documents online I have decided to try and write my code using -w and strict. So here is the problem. How do I pass Arrays to subs? I assume declaring everything main:: ...
    LysanderLysander
    Jan 24, 2002 at 8:21 pm
    Jan 24, 2002 at 10:06 pm
  • I am writing my first perl program (copied from a magazine). The only line that is not working is system( rm -rf $file ); The error message is: Can't call method "rm" with a package or object ...
    Randolph S. KahleRandolph S. Kahle
    Jan 12, 2002 at 4:22 pm
    Jan 14, 2002 at 11:37 am
  • Hi Everyone! I'm fairly new to Perl, and completely new to submitting to the list, so please be easy on me. :-) The purpose of the code I wrote (listed below) is to go through the current directory ...
    Nick_d_montpetitNick_d_montpetit
    Jan 11, 2002 at 4:58 pm
    Jan 11, 2002 at 7:45 pm
  • Hi, I saw this on perlmonks.org. I can't understand how it works. Can anyone enlighten me? #!/usr/bin/perl my $A="a"; for(0..285074){$A++;}print"$A\n";
    ZentaraZentara
    Jan 10, 2002 at 5:02 pm
    Jan 11, 2002 at 3:59 pm
  • I'm trying to figure out Perl's object-oriented features. I'm a long-time Python programmer, so I'm well-versed in its notion of OO programming, but Perl's method definition stuff seems a bit ...
    Skip MontanaroSkip Montanaro
    Jan 7, 2002 at 6:27 pm
    Jan 8, 2002 at 3:10 pm
  • Thanks to everyone in the group who has helped me recently. I appreciate all of your suggestions. I am working with a text file that contains pipe separators, like this: username | password I am ...
    MaureenMaureen
    Jan 23, 2002 at 1:14 am
    Oct 6, 2003 at 8:28 am
  • Hi, I am trying to move the decimal point 2 places to the the left. Eg : To make 4536233 into 45362.33 I tried this $total = "4536233"; $total = sprintf("%0.2f",$total); print "$total"; But I get ...
    Stuart ClarkStuart Clark
    Jan 28, 2002 at 1:57 am
    Jan 29, 2002 at 2:03 am
  • The following conditional expression tests whether the value of $number1 is negative or greater than 12: (($number1 < 1) || ($number1 12))" Shouldn't this test whether the number is 0, negative, or ...
    Naveen ParmarNaveen Parmar
    Jan 16, 2002 at 9:20 pm
    Jan 20, 2002 at 6:07 am
  • I hope someone can help me out. I set up this cgi file and html form on a Unix server. The script changes a user's password in a text file. This works correctly on a Unix Server. However, I need to ...
    MaureenMaureen
    Jan 16, 2002 at 9:19 pm
    Jan 19, 2002 at 12:30 pm
  • Hello all, Could some one help me with clearing or re-setting and array. I have an array that has an unknow number of elements in it, at one point in my program I would like to clear that array or ...
    Michael EggletonMichael Eggleton
    Jan 14, 2002 at 6:55 am
    Jan 15, 2002 at 12:27 am
  • Here a little daemon that runs my Perl FTP program with different job cards. It runs every 5 minutes. #!/usr/bin/perl -w use strict; use POSIX; # Start the loop for the daemon.... while(1) { my(@now) ...
    Stout, Joel RStout, Joel R
    Jan 7, 2002 at 6:53 pm
    Jan 8, 2002 at 4:57 pm
  • I'm looking into ways to do resumptive exception handling in Perl. For example, I have something equivalent to: eval { # Code where an error may occur die "Here's an exception"; # Code where I want ...
    Richard J. BarbalaceRichard J. Barbalace
    Jan 4, 2002 at 1:43 am
    Jan 7, 2002 at 5:37 am
  • I thought it would be good to be able to do this: $item = "<blah "; $item =~ tr/< /(&lt;)( )/; to convert those < symbols to their entity references. however, the tr operator doesn't seem to like ...
    KAVANAGH, MichaelKAVANAGH, Michael
    Jan 31, 2002 at 2:07 pm
    Feb 1, 2002 at 2:48 pm
  • Hello actually its very simple to answer for who knows basic perl. Suppose I have a string in $str I wanto extract some part of it based on regex and store it in the same string. how do i do that? ...
    Dhiraj P NilangeDhiraj P Nilange
    Jan 29, 2002 at 9:12 pm
    Jan 29, 2002 at 9:35 pm
  • Suppose I have a two dimensional hash: $name{Adams}{Alice}=1; $name{Adams}{Bob}=1; $name{Bull}{Adam}=1; etc. Given the first key, is there a way to pull out a second key, if I don't care which one? ...
    Pete EmersonPete Emerson
    Jan 29, 2002 at 3:56 pm
    Jan 29, 2002 at 6:51 pm
  • What do everyone think about this book? Perl Second Edition Black Book By Steven Holzner? Price: $59.99 (41.99 @Amazon) I was at Borders last night PS: Of course the list has been a valuable ...
    William AmpehWilliam Ampeh
    Jan 28, 2002 at 6:59 pm
    Jan 29, 2002 at 1:10 am
  • How about pinging several hosts that have a pretty good chance of being up. www.microsoft.com, www.netscape.com, www.ibm.com, etc, etc. You could also ping your local gateway address. If all fail ...
    John EdwardsJohn Edwards
    Jan 4, 2002 at 12:28 pm
    Jan 24, 2002 at 10:00 pm
  • Hello All Can anybody tell me where from I can down load 'Win32::ActAcc'. I tried it from CPAN but failed. Thanks Abhra
    Abhra DebroyAbhra Debroy
    Jan 16, 2002 at 1:10 pm
    Jan 24, 2002 at 9:39 pm
  • Hi! How can i get the number of the week from the current date ? Is there a module ? Thanks Franck
    Franck CollineauFranck Collineau
    Jan 23, 2002 at 12:16 pm
    Jan 23, 2002 at 4:01 pm
  • I am trying to write a perl script to count the words (not counting duplicates) in a file based on the following definition of word: "A word is any collection of characters seperated by white space ...
    Booher Timothy B 1stLt AFRL/MNACBooher Timothy B 1stLt AFRL/MNAC
    Jan 22, 2002 at 3:22 pm
    Jan 23, 2002 at 3:17 pm
  • $DOM_NAME, my $TLD) = split(/\./, $domain); creates two variable out of an inputted domain name, until this comes along: domainname.org.uk which it interprets as : $DOM_NAME = domainname $TLD = org ...
    Scott LutzScott Lutz
    Jan 16, 2002 at 11:57 pm
    Jan 17, 2002 at 7:11 pm
  • Dear Friends, can u tell me, how can i create an executable file for the .cgi program on linux whihc is having perl and javascript statements. Thanking you K. Rama koti Reddy.
    kondreddy Rama koti Reddykondreddy Rama koti Reddy
    Jan 10, 2002 at 10:05 am
    Jan 11, 2002 at 4:54 pm
  • hey guys, I have this code that prints out the direc structure/filenames for whatever root i choose...I would like to have a stat for each file...how do i go about doing this? I thought about adding ...
    Ben CraneBen Crane
    Jan 10, 2002 at 3:40 pm
    Jan 10, 2002 at 5:59 pm
  • Folks, looking for a clean way to change a value in a file on the fly before it is processed (ran). I have a perl script that kicks off several resource scripts (.scr) that are NOT a valid shell ...
    Yacketta, RonaldYacketta, Ronald
    Jan 8, 2002 at 2:14 pm
    Jan 9, 2002 at 9:55 pm
  • I understand how this works: --- $sum = 0; foreach $ascval (unpack("C*", $string)) { $sum += $ascval; } print "sum is $sum\n"; # prints "1248" if $string was "an apple a day" ----- buy not exactly ...
    Kipp, JamesKipp, James
    Jan 4, 2002 at 6:11 pm
    Jan 5, 2002 at 12:18 am
  • Guys: This is a VERY basic question. I'm in the process of getting Redhat 7.2 Linux which had Perl bundled with it. After I get Linux setup, how do I 'use' Perl ? I'll explain. When I install Visual ...
    Unknown SenderUnknown Sender
    Jan 2, 2002 at 11:39 pm
    May 10, 2005 at 4:49 pm
  • Hello everyone, I have a variable $myvar (an email address), and I would like to open a simple text file which contains email addresses (one on each line) and check to see if the address in $myvar is ...
    Chris ZampeseChris Zampese
    Jan 30, 2002 at 2:10 am
    Jan 30, 2002 at 10:34 am
  • Hi I wish to do string comparisons where the case is ignored, for example: $one = "ExanPle"; $two = ""example"; if ($one eq $two){ THIS RETURNS TRUE What do I add so that the comparison ignores the ...
    EkayesEkayes
    Jan 29, 2002 at 11:14 am
    Jan 29, 2002 at 6:42 pm
  • I am reading a line at a time of a windows log file and want to strip off the CR or LF characters at the end of the line chomp seems to have a weird effect (returning the cursor to the beginning of ...
    IT Workflow - Terry HoneyfordIT Workflow - Terry Honeyford
    Jan 25, 2002 at 4:26 pm
    Jan 28, 2002 at 10:59 am
  • Hi Please help if you can. Thanks again Stuart Clark How do I add all the number between the "a" and the "z" My output file only gives me the instances of the matching pattern and not the total # ...
    Stuart ClarkStuart Clark
    Jan 25, 2002 at 2:58 am
    Jan 25, 2002 at 1:54 pm
  • I am trying to write a function which creates a set of numbered arrays for me (@array1, @array2, @array3 . . .. @arrayn) so I can keep some of the input from a file I am reading in. I'm not sure if ...
    MorriganMorrigan
    Jan 23, 2002 at 9:08 pm
    Jan 23, 2002 at 10:34 pm
  • 7

    PDF

    Hello, I'm thinking about writing a program that would need to (among other things) produce PDFs as output. I know there are perl modules that can do that, but does anyone have any experience with ...
    Elias AssmannElias Assmann
    Jan 22, 2002 at 2:55 pm
    Jan 23, 2002 at 5:47 pm
  • I am unable to use "split" with pattern matching to remove alpha characters from a string and will appreciate a pointer on what I'm doing wrong. (Have looked in "Learning Perl" and "Programming Perl" ...
    Hewlett PickensHewlett Pickens
    Jan 16, 2002 at 11:56 pm
    Jan 20, 2002 at 8:12 pm
  • This newsgroup is great. I am learning alot from just reading the post here. I hope someone will be able to help with this query. ------------- #!/usr/bin/perl-w print "please enter a word then press ...
    RabsRabs
    Jan 13, 2002 at 1:58 am
    Jan 13, 2002 at 12:25 pm
  • I am a total beginner to perl. I wrote the program below to open a program file, read it line by line, and write each line to an output file after first putting two string lines out there. It ...
    Richard C 1Richard C 1
    Jan 11, 2002 at 9:18 pm
    Jan 13, 2002 at 1:50 am
  • Rob, Thank you for the quick reply on the line numbers. You were right - the line number in the error message was in one of the "use xxx" modules. And my face is slightly red from embarrassment re ...
    Hewlett PickensHewlett Pickens
    Jan 11, 2002 at 8:52 pm
    Jan 12, 2002 at 8:39 pm
  • Hi, Noticed this today : <script open(FD,'sudo grep -h "Connect time" /var/log/message* | grep -v COMMAND |') or die $! ; # Do some stuff ... while ( <FD ) { # do more stuff } </script In the above ...
    Prahlad VaidyanathanPrahlad Vaidyanathan
    Jan 9, 2002 at 4:24 am
    Jan 12, 2002 at 5:16 pm
  • Hello all, Below is what I have so far for my script, I can get every piece to work correctly on it's own, nut I cannot get these two pieces to work together. I think I am messing up the syntax of ...
    Garrett esperumGarrett esperum
    Jan 10, 2002 at 10:39 pm
    Jan 11, 2002 at 1:03 am
Group Navigation
period‹ prev | Jan 2002 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions649
posts2,304
users449
websiteperl.org

449 users for January 2002

Jeff 'japhy' Pinyan: 113 posts John W. Krahn: 98 posts Bob Showalter: 68 posts Jenda Krynicky: 61 posts Hanson, Robert: 59 posts Jonathan E. Paton: 55 posts Gary Hawkins: 44 posts John Edwards: 40 posts McCollum, Frank: 32 posts Tanton Gibbs: 32 posts Curtis Poe: 31 posts Jon Molin: 28 posts Briac Pilpré: 27 posts Scott: 27 posts Wagner-David: 27 posts Michael R. Wolf: 25 posts Frank: 24 posts Nikola Janceski: 24 posts Timothy Johnson: 24 posts Yacketta, Ronald: 24 posts
show more
Archives