FAQ

Search Discussions

529 discussions - 2,332 posts

  • 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 HarrisBryan 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. KentaneLanga F. Kentane
    May 28, 2002 at 7:34 am
    May 29, 2002 at 3:59 pm
  • 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 VicenteJose 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 GuglielmoFrancesco 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, AndrewHughes, 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 FrisvoldJason 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, JamesKipp, 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, ScottBatchelor, 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)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 GuglielmoFrancesco 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 RangarajJaishree 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 WittenbergUriel 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 DawsonMarc 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 LewickTaylor 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 PraisLance 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 GeerinckxFelix 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 ...
    CschoenemanCschoeneman
    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-perlEric-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 ZilberLeon 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 HammerCraig 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. CoxBeau 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 FryerShaun 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 LylesBill 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 WestJohn 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 HegrenesRune 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 MetcalfeRohesia 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 CunninghamNed 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, JoseTorres, 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, JoseTorres, 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. SinghShishir 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 ...
    DrieuxDrieux
    May 16, 2002 at 4:11 pm
    May 21, 2002 at 8:18 am
  • 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, HarryJackson, 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 IPlibDavid 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 AdamsRichard Adams
    May 6, 2002 at 2:17 pm
    May 8, 2002 at 12:47 am
  • 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 .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 TaylorA 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)HENRY,MARK (HP-Roseville,ex1)
    May 20, 2002 at 3:17 am
    May 24, 2002 at 9:11 am
  • 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 HammerCraig 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 SimonsenMatt 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 TaylorA 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 AhujaMayank 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. PatonJonathan 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 ...
    DrieuxDrieux
    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 MoustafaAhmed 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 ChappellDave 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 IPlibDavid 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 PraisLance 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é NyimiJosé 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, JamesKipp, 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 JonesBarry Jones
    May 21, 2002 at 6:23 pm
    May 22, 2002 at 6:55 am
Group Navigation
period‹ prev | May 2002 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions529
posts2,332
users354
websiteperl.org

354 users for May 2002

Drieux: 334 posts Felix Geerinckx: 130 posts John W. Krahn: 95 posts Jonathan E. Paton: 82 posts Timothy Johnson: 76 posts Nikola Janceski: 59 posts Jeff 'japhy' Pinyan: 55 posts Jackson, Harry: 47 posts Shishir K. Singh: 45 posts Chas Owens: 43 posts Sudarsan Raghavan: 39 posts Bob Showalter: 37 posts Beau E. Cox: 33 posts Bob ackerman: 31 posts David T-G: 29 posts Lance Prais: 28 posts Janek Schleicher: 21 posts Michael Lamertz: 21 posts David Gray: 20 posts Kipp, James: 18 posts
show more
Archives