FAQ

Search Discussions

672 discussions - 2,424 posts

  • Hi all, Using CGI as a bridge between Perl and the Internet has some disadvantages, prominent is the increased use of memory. Is there another alternative for connecting Perl with the Internet other ...
    George S PereiraGeorge S Pereira
    Jul 11, 2001 at 8:21 am
    Jul 12, 2001 at 4:40 am
  • Hi all, I would want to use a hash to keep pointers to functions, and then call them, but i'm stuck. So: I create: my %funcs=( "one"= \&first, "two"= \&second); Then how can I call 'first'? ...
    Pozsar BalazsPozsar Balazs
    Jul 3, 2001 at 4:32 pm
    Jul 4, 2001 at 12:26 am
  • All, This may be a stupid question. I was going through some online perl tutorials and they say that $_ is the default input, output and pattern matching variable. I tried this out [suddy@incq231e ...
    Sudarsan.RaghavanSudarsan.Raghavan
    Jul 27, 2001 at 10:45 pm
    Jul 29, 2001 at 1:49 am
  • Hello again, all. May I get some suggestions for any Windows-based PERL development tools? Preferably, free ones? Thanks, --Bill
    Bill PiersonBill Pierson
    Jul 3, 2001 at 7:30 pm
    Jul 7, 2001 at 7:54 pm
  • Not magic. =o) the code above says: checks a global hash called %seen for a key equal to $_ (the line just read). If it WASN'T already in the hash (in other words, we haven't %seen it =o) . . . ...
    PaulPaul
    Jul 30, 2001 at 6:15 pm
    Jul 30, 2001 at 9:40 pm
  • Hello, I sent an email yesterday, but never heard anything. Maybe it was the word 'php' in the subject, but let me just simplify and ask another way. Is there a way to automatically direct all STDERR ...
    Bob MangoldBob Mangold
    Jul 10, 2001 at 11:45 am
    Jul 10, 2001 at 7:33 pm
  • Hi, I need some advice from someone who has cut their teeth on inheritance a few times... I'm using __PACKAGE__- method() to call a method that exists in a class higher up the inheritance tree when ...
    Mark MaunderMark Maunder
    Jul 19, 2001 at 9:06 pm
    Jul 23, 2001 at 7:33 am
  • Yep, another newbie at Perl. I have come to a wall. What I need to do is open a file, find a value in the file and substitute a value. I've gotten to the point of what to do with an open file. I have ...
    Bob BondiBob Bondi
    Jul 10, 2001 at 3:29 pm
    Jul 11, 2001 at 10:10 pm
  • I am brand new to perl; I am only on chapt 4 of the learning perl book. My boss has already given me a project to do that I am really struggling with. I know you are all really busy, but I would ...
    Debbie ChristensenDebbie Christensen
    Jul 24, 2001 at 7:07 pm
    Jul 27, 2001 at 6:35 am
  • I'm curious which of the two examples is more preferred or it depends entirely on someone style? ---------------- $x = 1; #1) if ($x) { $x = 0 } #2) $x = 0 if $x; ---------------- IMO first is more ...
    Matija PapecMatija Papec
    Jul 9, 2001 at 4:10 pm
    Jul 10, 2001 at 9:43 pm
  • hi, What is the difference between list and an array?? May be this very small question. but i would like to know the difference. The help in this regard is appreciated. Thank you Regards babylakshmi ...
    Baby lakshmiBaby lakshmi
    Jul 9, 2001 at 11:00 am
    Jul 9, 2001 at 9:02 pm
  • In Visual I used the MID function to get a part of a text... por ex. "price = 33.10" and I could get using "=" and EOL as delimiters the price "33.10" Can you tell me if I should use the SPLIT ...
    SebadamusSebadamus
    Jul 12, 2001 at 3:08 pm
    Jul 13, 2001 at 1:25 pm
  • Easy question. open(IN,"something.txt"); while($line = <IN ) { chomp($line); if ($line eq "something") { ## HOW DO I STOP THE WHILE AND MOVE ON????? } } Too little sleep + too much perl = deer in ...
    Bill PiersonBill Pierson
    Jul 9, 2001 at 6:16 pm
    Aug 1, 2001 at 4:21 am
  • On page 23 of Learning Perl, there are commands to mail a message out. I have tried to manually send myself a message with mail and it works. The program does not work. I'm not sure why. Here is the ...
    Mike RodgersMike Rodgers
    Jul 29, 2001 at 3:32 pm
    Jul 31, 2001 at 1:42 am
  • Hi guys, I have a question maybe about "sort" or regular expression, @new = sort {($b =~ /=(\d+)/)[0] <= ($a =~ /=(\d+)/)[0]|| uc($a) cmp uc($b) } @old; I don't really understand this /=(\d+)/ [0] ...
    EriK WEriK W
    Jul 20, 2001 at 12:54 am
    Jul 23, 2001 at 4:56 pm
  • I have Active Perl installed on my laptop and it works find on the command line but when I try and call a .pl file from HTML I get the code displayed instead of the correct output. I found references ...
    Christopher WilliamsChristopher Williams
    Jul 16, 2001 at 7:06 pm
    Jul 22, 2001 at 6:33 am
  • (I orginally posted this in CGI Beginners, but received no response. Perhaps it more rightly belongs here, in the Land of Perl gurus?) I would appreciate some help or pointers for the following CGI / ...
    NotabeneNotabene
    Jul 20, 2001 at 8:51 pm
    Jul 21, 2001 at 2:26 am
  • How do I do: if ($something == "") { # do something } in perl? Thanks, Tyler
    Tyler LongrenTyler Longren
    Jul 17, 2001 at 5:56 pm
    Jul 17, 2001 at 8:03 pm
  • Hi gurus, I have a dumb question, when I read the book, I saw they generate and seed by using time() ^ $$ What ^ and $$ mean here? ^ bit xor? $$ logic and? Thanks in advance!
    Erik WErik W
    Jul 11, 2001 at 1:26 am
    Jul 13, 2001 at 2:11 am
  • Hello all. Just joined the list and after reading through the archives, I couldn't find an answer. I'm hoping someone can help. I have an array with 6 variables in it. I need to randomize the ...
    CDittyCDitty
    Jul 31, 2001 at 11:10 pm
    Aug 1, 2001 at 1:43 am
  • Howdy, I know that to determine the array length of @array, the following options are available: a) $#array (returns last index) b) scaler(@array) (returns true length) Now... if I have a ...
    Michael DubeMichael Dube
    Jul 31, 2001 at 6:26 pm
    Jul 31, 2001 at 9:48 pm
  • I want to test if "AF00001" is in my list @mylist; I did: foreach $LIST (@mylist) { if ($LIST = "AF00001") $boolean = 1; else $boolean = 0; } is there a more elegant way to do it? many thanks jennifer
    Jennifer PanJennifer Pan
    Jul 26, 2001 at 6:57 pm
    Jul 26, 2001 at 8:58 pm
  • Good morning! I just wrote a perl program that retrieves files of type http:// and ftp:// from the internet. When it retrieves the files it comes up in the html syntax of head, body, text etc. Is ...
    Sparkle WilliamsSparkle Williams
    Jul 19, 2001 at 1:51 pm
    Jul 20, 2001 at 6:17 pm
  • Just fiddling with regex's because I see them in the digests everyday, and I though the best way to learn these is to try them. Currently sliding backwards down the learning curve... Just want to ...
    Michael CarmodyMichael Carmody
    Jul 18, 2001 at 6:36 am
    Jul 19, 2001 at 1:25 pm
  • OK here is an overview of my problem, I am running a script to take a pipe delimited flat file and pump the data into a database. Due to the users putting extraneous apostrophes I am getting errors ...
    BorakovejBorakovej
    Jul 18, 2001 at 1:29 pm
    Jul 18, 2001 at 10:31 pm
  • Here's a topic for discussion: Coming from C++-land, I've always been taught over and over again that all subroutines/functions/blocks/etc should have only a single entry point and a single exit ...
    Kurt EdmistonKurt Edmiston
    Jul 12, 2001 at 3:27 pm
    Jul 13, 2001 at 1:50 pm
  • This will sound silly. I need to come up with a simple status indicator of some sort. I have in mind a "spinner." You've seen them before I'm sure, where there's a '-' then it changes to '\' then '|' ...
    GoodleafjGoodleafj
    Jul 9, 2001 at 9:04 pm
    Jul 10, 2001 at 2:26 pm
  • Hello everyone: We are new to the list and need to find out the following: Our server Admin just told us that we are now on Windows2000 with FrontPage Extensions installed. They warned us about using ...
    RL AutryRL Autry
    Jul 3, 2001 at 5:15 am
    Jul 5, 2001 at 11:51 am
  • Aah... I was so close. But slightly on the wrong track by using "split".. I had the regex as below. Now I just need to work out how to use this with my sort hash question. Thanks Pierre. In reply-to ...
    PaulPaul
    Jul 3, 2001 at 12:11 pm
    Jul 3, 2001 at 8:42 pm
  • Hi: I'm trying to take a word from a file and naming a scalar with that word. i.e. I find the word "target" in a file. I then need to create $target = "xxx" and various other variables related to ...
    Ron WoodallRon Woodall
    Jul 31, 2001 at 3:53 pm
    Aug 14, 2001 at 8:53 pm
  • I couldn't find anything relevant. Are there any modules that deal with system interaction. I need to navigate around a M$ machine and system commands only do so much... Thanks, Craig ...
    Craig S MonroeCraig S Monroe
    Jul 23, 2001 at 5:57 pm
    Jul 24, 2001 at 2:28 pm
  • I know this is a simple, stupid question, but i can't seem to find the answer. I've never used Perl before - only PHP. NOt very familiar with unix either... I'm trying to get this hello world script ...
    Tom MaloneTom Malone
    Jul 20, 2001 at 3:57 am
    Jul 20, 2001 at 6:48 pm
  • I adapted a guestbook from Matt Wright to suit my needs, only it was coded to run on a unix server, and I need it to run on a windows NT server. I don't have the faintest idea on what I need to ...
    SallySally
    Jul 18, 2001 at 9:08 am
    Jul 18, 2001 at 10:39 pm
  • Hello everyone, I have a file that contains a few domain names, and their dns servers (kind of like a zonefile). Here's the format: my.com dns1.blah.com me.com dns1.blah.com we.com dns1.blah.com ...
    Tyler LongrenTyler Longren
    Jul 18, 2001 at 1:44 pm
    Jul 18, 2001 at 8:29 pm
  • Hi, I'd like to be able to print a string at a specific location . Is there any function that does that. $test = "abcd'; I want to print $test at position 20-25. I appreciate if someone can help ...
    F.HF.H
    Jul 5, 2001 at 3:33 pm
    Jul 5, 2001 at 5:07 pm
  • Hi all, I have a file that it looks as it follows 1 0.057 M 2 0.819 R 3 0.731 V 4 0.708 K 5 0.070 G 6 0.611 I 7 0.055 + 8 0.748 + 9 0.864 N 10 0.146 a 11 1.782 Q 12 2.707 + 13 0.893 . 14 1.252 L 15 ...
    Pedro A Reche GallardoPedro A Reche Gallardo
    Jul 2, 2001 at 2:48 pm
    Jul 2, 2001 at 10:59 pm
  • Program below works fine but I wander how to optimize this; it looks very ugly. The final result have to be @data which contains two arrays. First array have to be equal size of second ...
    Matija PapecMatija Papec
    Jul 30, 2001 at 4:04 pm
    Jul 31, 2001 at 10:15 pm
  • thank you all for your help with regexp... you folks are awesome. another question. I'm writing a script where I need to append a file, and I'd like it to do one thing if the command is successful, ...
    Stephanie StiavettiStephanie Stiavetti
    Jul 25, 2001 at 7:30 pm
    Jul 26, 2001 at 12:22 am
  • I need to make sure that a field contains ONLY letters... and this is the regular expression I'm using: $name=~/^[a-zA-Z]+/ it doesn't seem to be working in the test script that I wrote: ...
    Stephanie StiavettiStephanie Stiavetti
    Jul 23, 2001 at 8:50 pm
    Jul 24, 2001 at 2:06 am
  • What is the best way to compare hash of arrays against each other? Actually, a better way to ask my question would be... I have a hash called %player_info that contains 4 elements per hash reference. ...
    Jim ConnerJim Conner
    Jul 20, 2001 at 4:27 am
    Jul 20, 2001 at 10:40 pm
  • Ok I am beating my head why this is not working... $fname = <STDIN ; chomp $fname; $fletter = substr($fname,0,1); # now we have the first letter of the first name if ( $fletter =~ /[a-f]/i) { print ...
    Richie CrewsRichie Crews
    Jul 18, 2001 at 3:27 pm
    Jul 18, 2001 at 3:47 pm
  • This is for newbies, right? Can anyone tell me why a s/^M//g won't get rid of the annoying ^M on the end of each line of an imported Paradox database? Is there a better way? I know this has to be ...
    System AdministratorSystem Administrator
    Jul 16, 2001 at 6:03 pm
    Jul 17, 2001 at 7:17 pm
  • Hi, I have been asked to write a perl script, to Delete 1 field in a input file and then print to a output file! What I need to delete from the file is: Field [3] Can any body please suggest what ...
    Govinderjit DhinsaGovinderjit Dhinsa
    Jul 5, 2001 at 10:53 am
    Jul 10, 2001 at 12:46 pm
  • As a beginner, I'm going nuts trying to do something in a .cgi program that should be trivial: I need to do an if(condition) load a .html, or load unless(condition). or, in another case, when a ...
    Walt SandersWalt Sanders
    Jul 7, 2001 at 8:56 pm
    Jul 8, 2001 at 5:25 am
  • Hi Bill, my choice is gnuemacs with cperl! cheers, mario -----Original Message----- From: Bill Pierson Sent: Tuesday, July 03, 2001 9:34 PM To: beginners@perl.org Subject: Editor Hello again, all. ...
    Aigner-Torres, MarioAigner-Torres, Mario
    Jul 4, 2001 at 2:18 pm
    Jul 7, 2001 at 9:26 pm
  • This is pretty beginners question, how can I extract IP number from $s? $s = "ALL: 172.184.70.165 # PORT: 59" Pattern have to match four numbers separated by "." Besides I have some array and need to ...
    Matija PapecMatija Papec
    Jul 4, 2001 at 9:39 am
    Jul 6, 2001 at 12:47 pm
  • ** Using ActiveState Build 522 (NT) I'm trying to decide on using DBI or an ODBC connection for moving data into or out of MS ACCESS 97 (or 2000) and back into the ACCESS table [yep, or change inside ...
    Steve.FewSteve.Few
    Jul 27, 2001 at 5:55 pm
    Jul 29, 2001 at 5:50 pm
  • On Jul 23, Teresa Raymond said: You're missing some characters in there... if ($name =~ /[^\w@.]/) { # character other than A-Z, a-z, 0-9, _, @, ., and local letters used } -- Jeff "japhy" Pinyan ...
    Jeff 'japhy/Marillion' PinyanJeff 'japhy/Marillion' Pinyan
    Jul 24, 2001 at 2:08 am
    Jul 29, 2001 at 5:25 pm
  • Hi, Can anybody tell me why this code doesn't work ? #!/usr/bin/perl -w open(FICHIER,"rdn1.html"); open (TEMP," temp.html"); while(<FICHIER ) { print TEMP $_ until ($_ =~m/ancre/); }
    COLLINEAU Franck FTRD/DMI/TAMCOLLINEAU Franck FTRD/DMI/TAM
    Jul 26, 2001 at 3:13 pm
    Jul 29, 2001 at 10:29 am
  • Hi, I've been asked to write a CGI script that takes a URL of the form: https://webserver/cgi-bin/myscript.cgi/myreport and redirects the browser to: ...
    Rich FernandezRich Fernandez
    Jul 27, 2001 at 7:04 pm
    Jul 28, 2001 at 9:01 am
Group Navigation
period‹ prev | Jul 2001 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions672
posts2,424
users484
websiteperl.org

484 users for July 2001

Michael Fowler: 104 posts Jeff 'japhy' Pinyan: 103 posts Jos I. Boumans: 77 posts Paul: 77 posts Brett W. McCoy: 70 posts Randal L. Schwartz: 55 posts Mooney Christophe-CMOONEY1: 53 posts Bob Showalter: 46 posts Abdulaziz Ghuloum: 37 posts Aaron Craig: 32 posts Jorge Goncalvez: 29 posts Paul Johnson: 29 posts Rahul Garg: 29 posts Wagner-David: 29 posts Maxim Berlin: 28 posts Tim Musson: 27 posts Charles: 26 posts Gary Stainburn: 26 posts John Edwards: 26 posts Stephen P. Potter: 26 posts
show more
Archives