FAQ

Search Discussions

379 discussions - 1,641 posts

  • i have a data file that looks something like this : ( it is already sorted by date ) 12/22/02 abc 123 456 789 12/23/02 def 246 812 98234 12/24/02 ank 987 23456 8762 12/27/02 abc 987 345 65434 ...
    Joseph PaishJoseph Paish
    Feb 20, 2003 at 6:43 pm
    Mar 10, 2003 at 11:35 am
  • Hi Guys, I have an array in which each element is a line commandline data. It looks something like this - @Array contains lines: post1: -r cat-100@dom.sub.com -x cat-100 -h post1 post2: -x tel -h ...
    DebDeb
    Feb 28, 2003 at 9:05 pm
    Mar 4, 2003 at 5:16 pm
  • I am trying to use HTML::TokeParser From the cpan page for this I used this example : while (my $token = $p- get_tag("a")) { my $url = $token- [1]{href} || "-"; my $text = $p- get_trimmed_text("/a"); ...
    Dan MueyDan Muey
    Feb 11, 2003 at 7:01 pm
    Apr 29, 2003 at 9:41 pm
  • Hello guys, I have just installed PERL/Apache and mod_perl, but this last one gave me an error when I try to compile. Could anyone help me? Thi is the error: bash-2.05# make && make test cd ...
    PjPj
    Feb 18, 2003 at 4:20 pm
    Feb 21, 2003 at 4:14 pm
  • I hadn't actually thought of it that way, but it's remarkably well explained. Well done. Ah, now that's not quite right. The 'do' block will create a local copy of $_, initialised to 'undef'. The end ...
    Rob DixonRob Dixon
    Feb 18, 2003 at 8:08 pm
    Feb 20, 2003 at 5:10 pm
  • From perlre: ============ Warning on \1 vs $1 Some people get too used to writing things like: $pattern =~ s/(\W)/\\\1/g; This is grandfathered for the RHS of a substitute to avoid shocking the sed ...
    PaulPaul
    Feb 20, 2003 at 9:00 pm
    Feb 26, 2003 at 8:31 pm
  • Hello All, Is the only way to copy a file from one directory to another by using the copy module...? Would anyone have a snipet of code copying a file from one dir to another... Any assistance would ...
    Michael PastoreMichael Pastore
    Feb 14, 2003 at 3:18 pm
    Feb 15, 2003 at 7:39 pm
  • I guess my main question would boil down to :: How can I use variables that get declared in a lib file in a script that uses -w and use strict; ? A more complex example of what I've tried and what ...
    Dan MueyDan Muey
    Feb 17, 2003 at 5:41 pm
    Feb 18, 2003 at 11:26 pm
  • I would like to pack some modules with my program. I've learned about use lib qw(/mydirto/mylibrary/); for simple modules. Now I have an module that has several directories (Crypt::OpenPGP). The ...
    Patricia HinmanPatricia Hinman
    Feb 13, 2003 at 8:37 pm
    Feb 17, 2003 at 3:16 am
  • Can someone tell me why my call to build_db() works but when I call alert() it will not work as it calls alert but will not enter the while loop I my opening the file with #!/usr/bin/perl $filein = ...
    Benjamin JeevesBenjamin Jeeves
    Feb 9, 2003 at 4:33 pm
    Feb 10, 2003 at 3:42 pm
  • Dear folks, I have 2 files each contain a column of data, I want to combine them into 1 file with the 2 columns next to each other, eg: file_1: 12 13 14 3 file_2: 3 45 34 56 desired output: 12 3 13 ...
    Aimal PashtoonmalAimal Pashtoonmal
    Feb 17, 2003 at 12:05 pm
    Feb 18, 2003 at 8:17 pm
  • Hello I'm just minutes away from bashing the famous 'head against the monitor'. Here's my problem: I have an array, let's name it @input. Another array, @blacklist, contains lines which should be ...
    Philipp GruemmerPhilipp Gruemmer
    Feb 21, 2003 at 11:26 am
    Mar 4, 2003 at 5:58 am
  • Again, from perlsub.... Under When to Still Use local() .... 3. You want to temporarily change just one element of an array or hash. You can "local"ize just one element of an aggregate. Usually this ...
    PaulPaul
    Feb 18, 2003 at 6:02 pm
    Feb 20, 2003 at 3:24 pm
  • Hi, what i'm creating is just an EXTREMELY script that sends an array to another script via PIPE. This is what i have: ################ #! /usr/bin/perl @file = qw (tony boby zombie anthony martine ...
    AnthonyAnthony
    Feb 8, 2003 at 7:48 pm
    Feb 10, 2003 at 3:31 pm
  • this is a script that systematically pings every host on the network, and writes the output to the screen. If the -n arg is specified, it will also write to a disk. What's wrong with the syntax, ...
    Mark VanMiddlesworthMark VanMiddlesworth
    Feb 12, 2003 at 12:23 am
    Feb 14, 2003 at 6:14 pm
  • Hi guys, How can I get around this "warning" Use of uninitialized value in pattern match (m//) at test.pl line 85. For some reason I always get driveNum=2. I am using warinig and strict in my code.. ...
    Chad kellermanChad kellerman
    Feb 1, 2003 at 5:46 pm
    Feb 3, 2003 at 4:45 pm
  • I'm making a script that enables you to download content off a server as it is, so the data is as up to date as it could ever possibly be. I have this: $number = 0; $path = ...
    DanDan
    Feb 21, 2003 at 11:16 pm
    Feb 27, 2003 at 3:40 pm
  • Is there a way to access the 'foreach' variable from a subprocedure called from inside the loop whose variable you want to access? Hooboy, even I don't understand that question! ;-) An example is ...
    LanceLance
    Feb 11, 2003 at 5:45 pm
    Feb 14, 2003 at 5:31 am
  • Hi, I want to send an e-mail from perl script.... i have following script...but i am getting following error..... does anybody have any idea, why it is failing ? ============== following is error ...
    Madhu ReddyMadhu Reddy
    Feb 6, 2003 at 1:40 am
    Feb 6, 2003 at 10:05 pm
  • Ok, so this is probably a stupid question, but I'm a newbie, and therefore stupid. :-] It'll take you about 5 seconds to figure this one out. I have an assignment that requires me to find words in a ...
    Gary MerrickGary Merrick
    Feb 20, 2003 at 2:46 am
    Feb 20, 2003 at 5:13 pm
  • I am writing a script that will read from a file named myfiles not stdin and print the lines containing the following words "everywhere" or 'nowhere. #!/usr/bin/perl #use strict while (< ) { chomp; ...
    Brady jacksanBrady jacksan
    Feb 18, 2003 at 4:50 am
    Feb 18, 2003 at 5:06 pm
  • Hi I have used NEt::telnet for remote login and automatic login to oen freebsd , it's ok and i could login ,but how can i telnet as root? i mean how can i do "su - root" with net::telnet ? or is ...
    BlueBlue
    Feb 16, 2003 at 12:35 pm
    Feb 18, 2003 at 2:55 pm
  • hi all, if i want to make a standalone executable of my perl program how do i do that with perlcc ??? or any other way to generate machinecoded executable? kindly enlighten me -- regards, KM
    KmKm
    Feb 13, 2003 at 10:00 pm
    Feb 18, 2003 at 10:33 am
  • I just had a friend explain in some little detail about linked lists in C using structures. How would such a thing be done with Perl? This may help me understand C's version a little better. If you ...
    JC(oesd)JC(oesd)
    Feb 16, 2003 at 6:29 pm
    Feb 17, 2003 at 3:49 pm
  • Hi How would I go about display a message say like "hello and welcome" in a konsole from a perl scripts if some thing meets a pattern that my perl srcipt is look for.
    Benjamin JeevesBenjamin Jeeves
    Feb 16, 2003 at 11:12 am
    Feb 16, 2003 at 3:10 pm
  • Hi, I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key Enter a first name or " <ctrl -z ", to exit chomp { ...
    Dakenah johnsonDakenah johnson
    Feb 15, 2003 at 6:04 pm
    Feb 16, 2003 at 1:29 am
  • The DBI module is recommended for database access. You'll need the DBD::mysql driver module to go with it. You can retreive the data using DBI, and write scripts to do statistical analysis. But since ...
    ReaveyReavey
    Feb 10, 2003 at 12:08 pm
    Feb 11, 2003 at 6:13 pm
  • This just tests whether the arrays have the same number of elements. It does not test the contents. For a "brute force" approach, you could use the following test: if ("@Af1" eq "@Af2") { print ...
    Bob ShowalterBob Showalter
    Feb 10, 2003 at 10:23 pm
    Feb 11, 2003 at 1:08 am
  • Hi I am facing a problem .In one script ,it asks the user to enter a filename ,where the whole path can also be entered.For Example : Enter the FILENAME : /usr/bin/xyz.sql My question is how to ...
    Debraj bhattacharyyaDebraj bhattacharyya
    Feb 5, 2003 at 5:43 am
    Feb 6, 2003 at 2:01 pm
  • Hello there, I am a newby trying to learn pearl. I wrote my first little script, and I would love to se where I could have done things better (in a more proffesional way). Feedback would be ...
    Johann SnymanJohann Snyman
    Feb 26, 2003 at 5:44 pm
    Mar 5, 2003 at 3:44 am
  • Greetings! I'm trying to do some Perl for a non-profit organization. The computer administrator doesn't know very much about Perl or about the server. If I were to ask him what Perl modules were ...
    Rob RichardsonRob Richardson
    Feb 24, 2003 at 7:12 pm
    Mar 3, 2003 at 10:09 pm
  • I'm tryin got find the quickest way to creat a file and write to it. I know I can do open.... print FILEHANDLE $stuff; close... and perhaps ad some flocks for good measure what I'm wondering is if ...
    Dan MueyDan Muey
    Feb 10, 2003 at 6:33 pm
    Feb 11, 2003 at 5:31 pm
  • Basic question on using '&&' vs 'and'. I see that '&&' has higher precedence than 'and', but why does print 1 && 1 && 0; print "\n"; print 1 and 1 and 0; print "\n"; return 1 I would have expected ...
    Jeff WestmanJeff Westman
    Feb 25, 2003 at 8:22 pm
    Mar 21, 2003 at 6:28 pm
  • Hello, Does anyone know of a quick/easy/fast way to to get the domain out of a url? For instance if I do : $url = $cgi- url(); I'll get, say http://joe.mama.com/so/isyour.cgi?mother I know I can use ...
    Dan MueyDan Muey
    Feb 17, 2003 at 5:41 pm
    Mar 3, 2003 at 6:27 pm
  • Hi, I have a project at work that I need help on. I have couple of questions regarding to my "file manipulation program" and was wondering if anyone could help me. Thanks a lot. I really appreicate ...
    Poon, Kelvin (Infomart)Poon, Kelvin (Infomart)
    Feb 24, 2003 at 6:07 pm
    Feb 25, 2003 at 12:50 pm
  • Hi, Any body can help me to get rid of this. One more problem shoot up. In some of the systems when the perl is exuceted, I am getting error. Please guide me how to rectify the error and what will be ...
    N. Ganesh BabuN. Ganesh Babu
    Feb 21, 2003 at 5:00 am
    Feb 23, 2003 at 7:21 pm
  • Lo all, I'm doing something *really* stupid... Please kick me... while (< ) { if ($_ =~ /LinkArea="MoreHeadlines" /) { ($URL) = $_ =~ /href="($.)"/; print "$URL\n"; } } I have a URL... <a ...
    Chris KnipeChris Knipe
    Feb 23, 2003 at 1:13 pm
    Feb 23, 2003 at 3:47 pm
  • Hello list, What is the best way to get the headers of an email into a hash and also the text part of the body into an array or variable? Here's what I have so far :: Assuming I have the entire email ...
    Dan MueyDan Muey
    Feb 21, 2003 at 5:06 pm
    Feb 21, 2003 at 9:20 pm
  • Lo all, I got a little problem with a CSV import... It should be rather straight forward to people who do this often.. so I'm hoping for some help... I have a MS Excel exported CSV text file, with , ...
    Chris KnipeChris Knipe
    Feb 20, 2003 at 8:33 pm
    Feb 20, 2003 at 9:14 pm
  • Hello list, Does anyone know how to set an environment variable in Perl and then have that variable persist after the Perl script has ended? I'm working in Unix. Thanks
    Steve MainSteve Main
    Feb 20, 2003 at 4:42 pm
    Feb 20, 2003 at 5:45 pm
  • Ok here go's , I'm just starting to Learn Perl and it's a very slow process. I have this script the calculates the sum a bunch of numbers and prints the final number to file, but my problem is I ...
    James ParsonsJames Parsons
    Feb 18, 2003 at 7:46 pm
    Feb 19, 2003 at 7:33 pm
  • Hi All I have no idea of CYGWIN except only that almost all unix commands can be run on windows . I want to know if the SAME program running on unix systems can be run on windows without any change ( ...
    Pradeep GoelPradeep Goel
    Feb 17, 2003 at 1:34 pm
    Feb 17, 2003 at 6:47 pm
  • Hi How can y give s sbstition order of the kind @string=~s/nonalfanum//g; in these two cases? 1-wich will search and replace with "" (empty char) all nunnumeric or nonalphabetic chars? 2-wich will ...
    AndreAndre
    Feb 14, 2003 at 2:14 pm
    Feb 16, 2003 at 1:38 am
  • I'm interested in doing the equivalent of a horizontal "cat" on a bunch of files. That is, instead of listing them one after another, I'd like them "cat"ted next to each other horizontally (tab ...
    Bryan HarrisBryan Harris
    Feb 13, 2003 at 6:49 pm
    Feb 14, 2003 at 11:55 am
  • To all you perl gurus out there... I've got this file named schedule.pl...in the interest of troubleshooting my problem, I've thinned my script to the following code... #!/usr/bin/perl print "<HTML ...
    Sam MauntzSam Mauntz
    Feb 3, 2003 at 7:13 pm
    Feb 12, 2003 at 8:13 am
  • I have to find duplicate customers in are customer file (around 60,000 customers). The file has been exported into a pipe delimited file. ...
    Paul KrausPaul Kraus
    Feb 11, 2003 at 3:09 pm
    Feb 11, 2003 at 3:51 pm
  • Hi All, I swear I've called subroutines this way before, but I can't find any examples. In this case, I'm looking to build some time/date functions. Regardless of what the actual code is supposed to ...
    Peter_farrarPeter_farrar
    Feb 7, 2003 at 8:23 pm
    Feb 10, 2003 at 6:55 pm
  • I'm trying to read the last line on a Plain text File. But when I use: open (DATOS, "$bd") || die "Error: no se puede abrir el archivo"; while ATOS ){ $registro = <DATOS ; } I don't get any value on ...
    Ramón ChávezRamón Chávez
    Feb 7, 2003 at 4:49 pm
    Feb 8, 2003 at 6:38 am
  • by using this code i get the right answer, but i want to store the pattern in the variable and use it, for pattern, it fails. what is the problem. is it related to priority of operator. open(IH, ...
    Kasi ramanathenKasi ramanathen
    Feb 6, 2003 at 4:11 am
    Feb 8, 2003 at 5:37 am
  • I was wondering if anyone had any ideas on how to parse a datafile with fixed length records but no carriage returns. All records are on one line. There are 3 fields per record the first is 10 ...
    Christopher M BurgerChristopher M Burger
    Feb 4, 2003 at 3:43 pm
    Feb 4, 2003 at 6:21 pm
Group Navigation
period‹ prev | Feb 2003 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions379
posts1,641
users279
websiteperl.org

279 users for February 2003

R. Joseph Newton: 103 posts Dan Muey: 101 posts Rob Dixon: 100 posts Wiggins d'Anconia: 89 posts John W. Krahn: 87 posts Paul: 75 posts David Zhuo: 51 posts Jenda Krynicky: 51 posts Beau E. Cox: 36 posts Bob Showalter: 30 posts Madhu Reddy: 29 posts Lance: 22 posts Harry Putnam: 21 posts Wagner, David --- Senior Programmer Analyst --- WGO: 21 posts Janek Schleicher: 20 posts Dan: 18 posts Felix Geerinckx: 18 posts Kipp, James: 18 posts Zentara: 17 posts Benjamin Jeeves: 16 posts
show more
Archives