Search Discussions
-
33
C vs. Perl
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 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 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, 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 Chan
Jan 27, 2002 at 6:30 am
Jan 28, 2002 at 5:17 pm -
-----Message d'origine----- De : mb <[email protected] À : [email protected] <[email protected] Date : vendredi 4 janvier 2002 21:46 Hi, When compiling the perl cgi code joined to this mail, I had ...
Mb
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 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: ...
Joelmon2001
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/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-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 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 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 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:: ...
Lysander
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. 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_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";
Zentara
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 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 ...
Maureen
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 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 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 ...
Maureen
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 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 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. 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/< /(<)( )/; to convert those < symbols to their entity references. however, the tr operator doesn't seem to like ...
KAVANAGH, 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 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 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 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 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 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 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/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 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 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 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, 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, 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 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 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 ...
Ekayes
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 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 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 ...
Morrigan
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 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 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 ...
Rabs
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 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 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 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 esperum
Jan 10, 2002 at 10:39 pm
Jan 11, 2002 at 1:03 am
449 users for January 2002
Archives
- May 2016 (29)
- March 2016 (38)
- February 2016 (66)
- January 2016 (62)
- December 2015 (36)
- November 2015 (59)
- October 2015 (35)
- September 2015 (32)
- April 2015 (18)
- March 2015 (101)
- February 2015 (74)
- January 2015 (99)
- December 2014 (74)
- November 2014 (65)
- October 2014 (47)
- September 2014 (66)
- August 2014 (68)
- July 2014 (171)
- June 2014 (85)
- May 2014 (126)
- April 2014 (36)
- March 2014 (162)
- February 2014 (154)
- January 2014 (94)
- December 2013 (42)
- November 2013 (71)
- October 2013 (192)
- September 2013 (143)
- August 2013 (114)
- July 2013 (141)
- June 2013 (201)
- May 2013 (163)
- April 2013 (90)
- March 2013 (125)
- February 2013 (150)
- January 2013 (185)
- December 2012 (120)
- November 2012 (101)
- October 2012 (117)
- September 2012 (180)
- August 2012 (319)
- July 2012 (170)
- June 2012 (223)
- May 2012 (249)
- April 2012 (298)
- March 2012 (311)
- February 2012 (261)
- January 2012 (155)
- December 2011 (282)
- November 2011 (266)
- October 2011 (316)
- September 2011 (369)
- August 2011 (371)
- July 2011 (310)
- June 2011 (392)
- May 2011 (434)
- April 2011 (630)
- March 2011 (440)
- February 2011 (282)
- January 2011 (419)
- December 2010 (319)
- November 2010 (314)
- October 2010 (360)
- September 2010 (256)
- August 2010 (223)
- July 2010 (340)
- June 2010 (298)
- May 2010 (483)
- April 2010 (683)
- March 2010 (480)
- February 2010 (339)
- January 2010 (322)
- December 2009 (531)
- November 2009 (558)
- October 2009 (375)
- September 2009 (449)
- August 2009 (497)
- July 2009 (428)
- June 2009 (306)
- May 2009 (293)
- April 2009 (362)
- March 2009 (477)
- February 2009 (467)
- January 2009 (408)
- December 2008 (405)
- November 2008 (545)
- October 2008 (770)
- September 2008 (662)
- August 2008 (663)
- July 2008 (773)
- June 2008 (730)
- May 2008 (650)
- April 2008 (791)
- March 2008 (692)
- February 2008 (399)
- January 2008 (694)
- December 2007 (581)
- November 2007 (688)
- October 2007 (882)
- September 2007 (709)
- August 2007 (1,243)
- July 2007 (849)
- June 2007 (898)
- May 2007 (796)
- April 2007 (587)
- March 2007 (705)
- February 2007 (521)
- January 2007 (578)
- December 2006 (565)
- November 2006 (555)
- October 2006 (704)
- September 2006 (734)
- August 2006 (725)
- July 2006 (884)
- June 2006 (681)
- May 2006 (703)
- April 2006 (889)
- March 2006 (724)
- February 2006 (607)
- January 2006 (588)
- December 2005 (684)
- November 2005 (664)
- October 2005 (682)
- September 2005 (616)
- August 2005 (743)
- July 2005 (716)
- June 2005 (670)
- May 2005 (809)
- April 2005 (830)
- March 2005 (1,020)
- February 2005 (740)
- January 2005 (784)
- December 2004 (873)
- November 2004 (910)
- October 2004 (1,242)
- September 2004 (936)
- August 2004 (911)
- July 2004 (1,101)
- June 2004 (1,026)
- May 2004 (945)
- April 2004 (1,161)
- March 2004 (1,485)
- February 2004 (1,608)
- January 2004 (1,512)
- December 2003 (1,607)
- November 2003 (1,437)
- October 2003 (1,314)
- September 2003 (1,382)
- August 2003 (1,351)
- July 2003 (1,559)
- June 2003 (1,576)
- May 2003 (1,586)
- April 2003 (1,600)
- March 2003 (1,731)
- February 2003 (1,641)
- January 2003 (2,020)
- December 2002 (1,360)
- November 2002 (1,198)
- October 2002 (1,677)
- September 2002 (1,905)
- August 2002 (1,685)
- July 2002 (1,975)
- June 2002 (1,900)
- May 2002 (2,332)
- April 2002 (2,098)
- March 2002 (1,658)
- February 2002 (2,237)
- January 2002 (2,304)
- December 2001 (1,568)
- November 2001 (1,823)
- October 2001 (1,712)
- September 2001 (1,289)
- August 2001 (1,993)
- July 2001 (2,424)
- June 2001 (3,399)
- May 2001 (1,797)
- April 2001 (650)