Search Discussions
-
I'm trying to come up with an algorithm that seems like it ought to be really easy, but it's turning out to be pretty tough... Basically I have three pairs of start/stop times, e.g.: 3, 5 4, 10 15, ...
Bryan R Harris
May 29, 2002 at 11:59 pm
Jun 6, 2002 at 11:03 am -
Greetings, How would I go about shredding a file with perl, for instance, I have a script opening a time file, writing something in there and then deleting the temp file when execution is done. How ...
Langa F. Kentane
May 28, 2002 at 7:34 am
May 29, 2002 at 3:59 pm -
32
PID question
Hi friends. I would like to know if a process is running. For example if pop3 is running how can I do that in perl. I am trying to make a script that has to work only if certain process is running. I ...Jose Vicente
May 8, 2002 at 4:07 pm
May 10, 2002 at 2:15 pm -
30
Help!
Please help me! I'm going crazy! It's perfect but I need something more.I need also the qw001234 with the passwd that's in another file in format: qw001234 rfvcde And I want it for all lines of all ...Francesco Guglielmo
May 15, 2002 at 1:33 pm
May 23, 2002 at 3:30 pm -
I have a pipe delimited text file that I use as a mailing list I have information in the following format: lastname|firstname|company|email|state|date I am using it as a mailing list. However, over ...
Hughes, Andrew
May 10, 2002 at 7:14 pm
May 12, 2002 at 5:16 pm -
Here's another simple question.... I have an array of arrays and I want to use a foreach to do something with each entry... currently I do this : foreach my $item (@myarray) { my ($item1, $item2) = ...
Jason Frisvold
May 6, 2002 at 4:04 pm
May 14, 2002 at 7:06 pm -
I am reading output from a pipe to a command called 'prstat' (like top). just wanted to get some ideas on the best way to capture the data i am looking for. below is an example of the output: -- PID ...
Kipp, James
May 30, 2002 at 1:55 pm
May 31, 2002 at 12:48 pm -
I just want to be sure I understand what this statement says: $pair=~m/([^=]+)=(.*)/) This basically says start at the beginning of the string and match any "=" all the way to the end of the ...
Batchelor, Scott
May 9, 2002 at 5:33 pm
May 28, 2002 at 2:47 pm -
Hi All, Assuming I used unique variable names throughout my entire program, then is if correct to say I don't need to declare function variables with 'my'? I'm trying to figure out what advantage ...
HENRY,MARK (HP-Roseville,ex1)
May 14, 2002 at 8:33 pm
May 20, 2002 at 12:01 pm -
16
Split
I haven't yet resolved my problem with pattern matching and I'm in front of another problem. I have a file with username: name #there are one or more white space I need to make a new file with name ...Francesco Guglielmo
May 14, 2002 at 10:36 am
Jul 5, 2002 at 3:14 am -
Hello I have a value say "$s_field". I have to see if this matches with in the range 1-10 can I use eq operator for this. I am a beginner , please help me to do this. Thanks Jessie
Jaishree Rangaraj
May 14, 2002 at 8:58 pm
May 15, 2002 at 9:22 pm -
Could someone please advise how to determine the size in KB of an email message? I currently have: --------------------------- use Mail::Internet; .... my $item = Mail::Internet- new(STDIN) ; my ...
Uriel Wittenberg
May 11, 2002 at 2:07 am
May 13, 2002 at 11:02 pm -
I am supposed to parse a text file such as this- 781457 Hartanto Victor Setiawan <vhartant@eecs.ukans.edu 777557 Hatfield Benjamin <hatfib@eecs.ukans.edu 779777 Henry James <henryl@eecs.ukans.edu ...
Marc M Dawson
May 7, 2002 at 12:46 am
May 7, 2002 at 11:21 pm -
Hi, I have the following one liner which works great in a shell script. I have a comma delimited text file with the same number of rows. I want to add the date in YYYY-MM-DD format to every line... I ...
Taylor Lewick
May 20, 2002 at 7:41 pm
May 22, 2002 at 2:13 am -
I am m using the following code to read from a .txt file. I am running into a problem that I am not sure why it is happening. The problem is when I run this script the SQL is not reading the ...
Lance Prais
May 29, 2002 at 8:07 pm
May 31, 2002 at 2:10 pm -
Yearly posting statistics for perl.beginners - 2001. From 2001-01-01 to 2001-12-31 there were 16643 articles posted (705907 lines) by 2200 authors, giving an average 7.57 articles per author, and an ...
Felix Geerinckx
May 24, 2002 at 6:50 pm
May 25, 2002 at 6:21 pm -
Why is the addition of the numbers -67947269.62 and 68288455.49, both with only 2 numbers after the decimal, resulting in 341185.86999996 where there are 8 numbers after the decimal. I would expect ...
Cschoeneman
May 23, 2002 at 3:51 pm
May 23, 2002 at 6:52 pm -
Hello, All: I'm trying to loop through a list of variables and print their values. e.g., print $name, $age, $phone. What's the best way to do this? I've tried foreach (qw(name age phone)) { print ...
Eric-perl
May 18, 2002 at 12:11 am
May 20, 2002 at 1:21 pm -
Hi guys, I am very new to Perl, and in need to write a perl program. The way code must get its input is through the email. Basically, email will be send to account, say, perlAccount, which will have ...
Leon Zilber
May 23, 2002 at 6:00 pm
May 23, 2002 at 9:39 pm -
I've found a couple of examples of moving an array into a hash, but not of moving a hash into an array. I thought this would work: @sorted = sort { $myhash{$b} <= $myhash{a} } keys %myhash ; while ( ...
Craig Hammer
May 29, 2002 at 12:59 pm
May 29, 2002 at 9:38 pm -
Hi all - I would like to recommend "Effective Perl Programming" by Joseph N. Hall with Randal L, Schwartz, Addison-Wesley, 1998, ISBN 0-201-41975-0. Although "old", it has really helped my style. I ...
Beau E. Cox
May 18, 2002 at 1:52 pm
May 21, 2002 at 3:10 pm -
I'm curious if anyone has an better idea of how to recieve multiple lines of <STDIN into a single array. For example, I've written a really basic emailer for administrating email lists I'm on. I can ...
Shaun Fryer
May 13, 2002 at 7:58 pm
May 14, 2002 at 7:16 pm -
I made a script with Perlbuilder 2.0 to get data from a form, then validate the email address and email the data Everytime I run the form it keeps telling me to enter a valid email address wich of ...
Bill Lyles
May 13, 2002 at 1:12 am
May 13, 2002 at 2:05 pm -
The environment here is to complex and relies on proprietary vendor tools which I can't send, so here's a chunk. I'm trying to figure out if the second foreach is really required in the code below - ...
John West
May 5, 2002 at 6:37 pm
May 6, 2002 at 4:28 pm -
Hi I've created a script that is checking the status of an ASE-server. It's running in an infinitive loop: 1. Connect to the database 2. Doing som checks... 3. Disconnecting from the db 4. Sleeping ...
Rune Hegrenes
May 2, 2002 at 9:01 am
May 4, 2002 at 1:43 am -
Hello, I have a list of html-page-creating cgi scripts, which is being randomly accessed. Once my random selection of the script has been made, I need to be able to access the middle part of the ...
Rohesia Hamilton Metcalfe
May 30, 2002 at 3:28 pm
Jun 5, 2002 at 3:17 pm -
Snip open CUST, $cust or die "Cant open it :$!"; open WRFILE, " $wrfile"; while (defined ($line = <CUST )) { chomp $line; @data = split(/\|/,$line); $newnum=$newnum+1; printf WRFILE ("0%9d",$newnum); ...
Ned Cunningham
May 31, 2002 at 2:36 pm
May 31, 2002 at 4:11 pm -
Hi, How can I simply iterate over the contents of a directory? I want to perform a certain action when I locate a particular text file. Thanks. -Jose
Torres, Jose
May 29, 2002 at 2:22 pm
May 30, 2002 at 7:05 am -
Hi, I have a directory with several subdirectories, each full of several dozen Word files. For each subdirectory, I need to run the checksum app against all of that directory's files and output a ...
Torres, Jose
May 23, 2002 at 4:04 pm
May 25, 2002 at 9:07 pm -
Hi, Sometime back, someone had posted the module to get the drives on Windows system on my request. Think it was either Nikola Janceski or Beau Cox. Could you pls resend the zipped file or the link ...
Shishir K. Singh
May 24, 2002 at 2:08 pm
May 24, 2002 at 7:43 pm -
I feel morally compelled to point out to any of the real Newbies who are on the beginner's mailing list that this READS like the usual form of 'deep denial' that needs to come out in the light of ...
Drieux
May 16, 2002 at 4:11 pm
May 21, 2002 at 8:18 am -
10
Perldoc
If I wanted information on declaring variables using perldoc how would I find it. perldoc perldoc is no use. Is there a way where I can list all the different documents and contents. Harry ...Jackson, Harry
May 16, 2002 at 1:48 pm
May 17, 2002 at 8:36 am -
Hi, I have a question about determine how many charactars contain a var. Does anyone know, there will probably be a simple command, but I can't find it. Assuming $_ = ...
David vd Geer Inhuur tbv IPlib
May 7, 2002 at 1:04 pm
May 8, 2002 at 4:03 pm -
Hello, I've got an array of arrays, and want to sort by the 3rd element of the subarray. I then want to print out the sorted array, showing the index and values. E.g., @AoA = ( [23.56, 65.2, 12.4], ...
Richard Adams
May 6, 2002 at 2:17 pm
May 8, 2002 at 12:47 am -
10
split array
Hi, Is there any way i can split an array that contains information that i got from the mysql database? here's the code: while(my @data = $sth- fetchrow_array){ print "@data\n"; right now its prints ...Greg D .
May 1, 2002 at 9:44 pm
May 2, 2002 at 4:04 am -
Hi all, I have a very simple and probably stupid question to ask. If I have a set of arrays, @data1, @data2, @data3 etc, can I join them all together to make 1 main array ie: @main = @data1 + @data2 ...
A Taylor
May 21, 2002 at 2:05 pm
May 31, 2002 at 5:06 pm -
Hi All, Anyone know how to fire off an email on a windows box from a perl script? No guarantee that the machine the script executes on would have an outlook/isapi client installed.. Many thanks, Mark
HENRY,MARK (HP-Roseville,ex1)
May 20, 2002 at 3:17 am
May 24, 2002 at 9:11 am -
9
uniq
I am working on a script to read in a firewall logfile, pull out the IP addresses of denied packets, then give me a count per IP address, and perform a whois on each address. This previously ran as a ...Craig Hammer
May 23, 2002 at 2:18 pm
May 23, 2002 at 8:47 pm -
I have a script to monitor servers which is basically an infinate loop that sleeps and runs again. I start from a ssh session by the command: ssh -f $server "~/script &" It seems to be dieing on some ...
Matt Simonsen
May 16, 2002 at 7:11 pm
May 17, 2002 at 1:42 pm -
I have written a script that searches through a directory and finds files that are no longer needed - these files are actually image files - .jpg or ..gif extensions. But how do I actually delete the ...
A Taylor
May 15, 2002 at 4:43 pm
May 16, 2002 at 7:01 pm -
Hi Group! Is there a module, using which i can determine the Operating System on which my perl script is running? I cannot use $^O as the my script will be an executable (using perl2exe) and therfore ...
Mayank Ahuja
May 13, 2002 at 6:09 am
May 13, 2002 at 2:56 pm -
if ($] < 5.600) { warn "our isn't implemented"; } Note that 'use vars' is supposedly depreciated, so don't use it if your script depends on 5.6 features. Placing 'our' in a lexical scope probably ...
Jonathan E. Paton
May 11, 2002 at 5:00 pm
May 11, 2002 at 9:46 pm -
volks, I seem to be unclear from such documentation as I have where exactly does the win32 space begin and end? My premise had been that this was a 'windowing system' on the order of M.I.T's ...
Drieux
May 10, 2002 at 12:57 am
May 11, 2002 at 3:22 am -
Hi All, Do the forked processes and the parent process share (read/write) the global declared variables? (I think so but am not sure). Your help will be appreciated. Ahmed
Ahmed Moustafa
May 9, 2002 at 5:17 am
May 11, 2002 at 12:34 am -
I read a file line by line, on each line if any numbers in the range specified below exist between comas, Example: Line 1 hello,world,123,, Line 2 The grass,456, is,greener, Line 3 On,533,the,other, ...
Dave Chappell
May 10, 2002 at 2:55 pm
May 10, 2002 at 4:24 pm -
Hi, I know how to delete 1 or more whitespaces at in a line using : while <IN { s/\s+//g; } close IN; #----------------------------- But How do I specific delete 1 or more whitespaces at the end of ...
David vd Geer Inhuur tbv IPlib
May 27, 2002 at 12:49 pm
May 27, 2002 at 5:49 pm -
I am trying to use the substr() to search a text doc. The starting place is 100. I am trying to test to see if "Sleeping for 10" is there. This is the code I am trying to use substr($line 100,16) but ...
Lance Prais
May 23, 2002 at 7:07 pm
May 24, 2002 at 3:36 pm -
Hello, I would like to check if a given directory is writable for the user who run the script. My first idea is to open a dummy file in " " mode on that directory and check if everythink went ok or ...
José Nyimi
May 22, 2002 at 8:41 pm
May 23, 2002 at 1:07 am -
Anyone have any suggestion, routines, ideas for timing a function? Namely the function will copy large files. i want to time how long the copy will take. thanks for any help.
Kipp, James
May 22, 2002 at 2:50 pm
May 22, 2002 at 6:06 pm -
How can I sort a hash's keys in reverse order? Barry Jones DATABUILT, Inc. The Global AEC Information Company 1476 Fording Island Rd. Bluffton, SC 29910 (843) 836-2166 office "Life is like a dogsled ...
Barry Jones
May 21, 2002 at 6:23 pm
May 22, 2002 at 6:55 am
354 users for May 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)