FAQ

Search Discussions

483 discussions - 1,658 posts

  • How can I thread a function in Perl? Any help will be appreciated so much. Regards, -- Ahmed Moustafa http://pobox.com/~amoustafa
    Ahmed MoustafaAhmed Moustafa
    Mar 26, 2002 at 2:50 am
    Apr 22, 2002 at 3:44 am
  • i need to join $stringa to $stringb with a coma in the middle (no whitespaces). i have tried $stringc = $stringa.",".$stringb but it says there is a problem. what should it be? -- Matthew Harrison ...
    Matthew HarrisonMatthew Harrison
    Mar 22, 2002 at 11:41 pm
    Mar 23, 2002 at 8:39 pm
  • Hello, All: I've looked around for an answer to this (The Camel Book, The Ram Book, perldoc, google.com, etc.) but can't find a thing: Is it possible to test for the existence of a filehandle? I've ...
    Eric-perlEric-perl
    Mar 27, 2002 at 9:23 pm
    Mar 28, 2002 at 8:33 pm
  • I decided to write a little script to help choose who will make the tea on our gaming night [there is always an argument!] I thought I was doing quite well but it seems I am picked on by the ...
    WytchWytch
    Mar 27, 2002 at 11:25 pm
    Mar 28, 2002 at 5:51 pm
  • Hi All, Does anyone help me about how I can find the maximum and minumum element of an array? Ozgur *************************************************************************** This e-mail and any ...
    OZGUR GENCOZGUR GENC
    Mar 27, 2002 at 11:06 am
    Mar 27, 2002 at 11:56 pm
  • I am receiving a strange error on exiting a script: Attempt to free unreferenced scalar during global destruction. It only occurs after I make a DBI connection and run an SQL statement. I am undefing ...
    Chas OwensChas Owens
    Mar 18, 2002 at 5:36 pm
    Mar 18, 2002 at 10:27 pm
  • Is there a perl function that reads one character at a time from a string and and returns that character? Something like the following: $Line = some string; foreach ($Line){ $char=read_char($_);} ...
    Richard noel fellRichard noel fell
    Mar 4, 2002 at 1:55 am
    Mar 5, 2002 at 12:12 am
  • Hello beginners, Here is a very basic question: I am trying to print only the zip code of massachusets Even though this works, i am pretty sure there is a better way doing this. Any ideas? ...
    Suraj rajendranSuraj rajendran
    Mar 4, 2002 at 2:15 am
    Mar 25, 2002 at 9:07 pm
  • Hey all, Does any one know how I would go about finding everything between the words of... In: <AND Your? So if I have a sentance with the following... Hello all this In: America (New York) Your So ...
    Daniel FalkenbergDaniel Falkenberg
    Mar 7, 2002 at 10:55 pm
    Mar 11, 2002 at 9:31 am
  • Greetings; Is there some perl shorthand that will make it easier to say if ( $x eq 'X' || $x eq 'Y' || $x eq 'Z' ) TIA, Dennis
    Dennis G. WicksDennis G. Wicks
    Mar 4, 2002 at 5:34 pm
    Mar 4, 2002 at 10:19 pm
  • Hi list! I've always thought there's a difference between for and foreach, that for uses copies and foreach not. But there's no diff is there? my @a = (1, 2, 3 , 4 , 5); $_ += 2 for (@a); print ...
    Jon MolinJon Molin
    Mar 1, 2002 at 10:32 am
    Mar 4, 2002 at 9:39 am
  • Hello All, Just wondering how I would go about setting up the following hash and if it would be wise to do it this way? I have the following data... $username $company $fullname $owing I want to ...
    Daniel FalkenbergDaniel Falkenberg
    Mar 26, 2002 at 1:13 am
    Mar 26, 2002 at 4:49 am
  • Ok, and where are the recommended characters to disallow? I have tested and I know which characters are going through but I would like to make sure I've included most of the recommended list. -- ...
    Teresa RaymondTeresa Raymond
    Mar 28, 2002 at 10:45 pm
    Apr 1, 2002 at 4:25 pm
  • Can anyone think of a good way for me to find out what the date of last sunday is with perl? I'm writing a script that will need to do some basic reporting starting from the previous sunday. I'm ...
    Rory oconnorRory oconnor
    Mar 21, 2002 at 4:11 am
    Mar 21, 2002 at 11:46 pm
  • Hi! Is there some limit in how long the contents of the variable $_ can be? The problem I have is following: my script reads a file line by line. These lines are fairly long. As soon as I work with ...
    Anette SeilerAnette Seiler
    Mar 12, 2002 at 9:55 am
    Mar 14, 2002 at 7:04 pm
  • Ok, I know this is not the list to send this to, but it is the most responsive list. I have a DNS question. I just installed Solaris 8 on one of our servers. I reconfigured the network files back to ...
    Joyce HarrisJoyce Harris
    Mar 12, 2002 at 4:17 pm
    Mar 12, 2002 at 6:13 pm
  • Any good text editors for Mac? I am interested in something that will display at least line #s. TIA, - NP Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com
    Naveen ParmarNaveen Parmar
    Mar 7, 2002 at 10:02 pm
    Mar 8, 2002 at 5:47 am
  • Can anyone tell me why " print $rec- [4] " prints but print "$recs[0]- [4] does not print a thing ? I've confimed the data, the first row in the fourth column is an "F" $rec- [4] prints it, but ...
    Derrick WipplerDerrick Wippler
    Mar 6, 2002 at 4:03 pm
    Mar 7, 2002 at 3:45 pm
  • HI, I am having a very newbie problem. I am reading an Access database with ODBC and have my data read into $Data{STATE} My problem is now I need to match to 16 different states. I have so far If ( ...
    Ned CunninghamNed Cunningham
    Mar 29, 2002 at 4:47 pm
    Apr 1, 2002 at 2:58 pm
  • All, I have a one big text file and also I have some set of strings to be replaced by another set of strings. Currently, I am reading each line of the file, and replacing one set of strings by ...
    Rajanikanth DandamudiRajanikanth Dandamudi
    Mar 21, 2002 at 5:25 am
    Mar 22, 2002 at 12:38 am
  • I'm wondering if a module exists to check an email address in real time. I would use the module in a web page signup for a mailing list. After the user submitted her email address, she'd see a page ...
    KEVIN ZEMBOWERKEVIN ZEMBOWER
    Mar 18, 2002 at 9:44 pm
    Mar 19, 2002 at 6:12 pm
  • Speaking of text editors, anyone know of a good one that has line #ing for W2K? Free, of course (I am a student). BTW - this is a list that is really worth reading. You guys (and you know who you ...
    MichaelMichael
    Mar 8, 2002 at 5:40 am
    Mar 9, 2002 at 11:37 pm
  • I am on NT, trying to use 'PPM INSTALL DBI' and receiving an error message: Error installing package 'DBI': Could not locate a PPD file for package DBI: Very frustrating. I have yet to succeed with ...
    Peter_farrarPeter_farrar
    Mar 7, 2002 at 7:03 pm
    Mar 8, 2002 at 1:42 pm
  • Hi, I am trying to open a database connection and having a problem--it will NOT open. Here is the code that I am using. # security is the name of the database. #user_data is the name of the access ...
    Thomas WhitneyThomas Whitney
    Mar 10, 2002 at 11:59 pm
    Mar 30, 2002 at 12:13 am
  • 7

    &&

    Hi all, I have some arrays and like to trigger some events depending on which array or combination of arrays contains data. What I tried was something like: snippet if(@dates && !@themes && !@cities) ...
    MarcuswillemsenMarcuswillemsen
    Mar 28, 2002 at 2:44 pm
    Mar 28, 2002 at 4:16 pm
  • Is there anyway to change the Default Input Record Separator.. or $/ .. to allow me to read a character at a time? I tried $/=~ /./; but it doesn't work. Thanks, Agustin Rivera Webmaster, ...
    Agustin RiveraAgustin Rivera
    Mar 26, 2002 at 1:06 am
    Mar 26, 2002 at 10:27 pm
  • Hi There. I have this piece of code which I call with the following; array.csh "one" "two" "three four" "five" "sic cod" #!/opt/perl-5.6.1/bin/perl -w $count=0; print " ARGV $#ARGV\n\n"; while ...
    Laycock, AngusLaycock, Angus
    Mar 18, 2002 at 10:57 am
    Mar 18, 2002 at 12:13 pm
  • Below is a simple script which I am using as part of my attempt to learn how to program a gui with perl and Tk. I have copied the program from a book, "Cross Platform Perl" (not very good, but some ...
    Richard noel fellRichard noel fell
    Mar 7, 2002 at 5:43 pm
    Mar 8, 2002 at 3:26 pm
  • Hola, I'm using "use lib" dynamically: $script_dir = get_lib(); use lib "$script_dir"; This works but generates the warning "Empty compile time value given to use lib." Is there any way to supress ...
    Carl SchoenemanCarl Schoeneman
    Mar 7, 2002 at 7:30 pm
    Mar 8, 2002 at 12:54 am
  • I've got a file that I would like to import into a list. The file has many rows, and each row has 3 records, seperated with a "|". Example of file is as below: f|Axe Strike|d f|Disquiet of our ...
    James WoodsJames Woods
    Mar 5, 2002 at 12:04 am
    Mar 6, 2002 at 12:57 am
  • I'm sure this is such a simple thing, most of you-all are laughing at me right now. main_program { blah; blah; %input_parm = (); $input_parm{PRICE} = "42.00"; $input_parm{PRODUCT_ID} = "1306"; ...
    John CrockettJohn Crockett
    Mar 2, 2002 at 4:14 pm
    Mar 3, 2002 at 12:32 am
  • I'm parsing a file with multiple Fortran-like blocks that look like: START_KEYWORD line 1 line 2 END_KEYWORD I want only the contents of each block, not the keywords. grep { ...
    Rob LeeRob Lee
    Mar 29, 2002 at 9:16 pm
    Mar 30, 2002 at 10:20 pm
  • I've made a perl script available for downloading, and would appreciate any code review from anyone so inclined. The script emulates a legacy C program (1982, named biblio), and is a command-line ...
    ERIC Lawson - x52010ERIC Lawson - x52010
    Mar 28, 2002 at 10:52 pm
    Mar 29, 2002 at 7:35 pm
  • Hi All, Is there a way to covert a .csv file to .tab file? I checked out the module Text::CSV_XS but I didn't see too much that made sence to me... :-) I also looked into substitution, something like ...
    Brian VolkBrian Volk
    Mar 27, 2002 at 1:19 am
    Mar 27, 2002 at 8:17 pm
  • Hello all, I have a file of 3,210,008 CSV records. I need to take a random sample of this. I tried hacking something together a while ago, but it seemed to repeat 65,536 different records. When I ...
    Balint, JessBalint, Jess
    Mar 18, 2002 at 10:09 pm
    Mar 22, 2002 at 9:18 pm
  • Hi! Im a New User to Perl. Ive got Equipped with me a book called Begining Perl by Simon Cozens, its honeslty an Quite an Good Buy! However, after installing Perl from ActiveState, (for Windows) and ...
    Perl CosmicVoidPerl CosmicVoid
    Mar 21, 2002 at 3:52 am
    Mar 21, 2002 at 1:32 pm
  • CPAN is running exremely slow (as per usual) and I just have a quick question. How do I CREATE a database from within perl with MySQL? Generally the first command you give for DBI will be a statement ...
    James TaylorJames Taylor
    Mar 19, 2002 at 10:18 pm
    Mar 20, 2002 at 4:01 pm
  • How do you keep line numbering straight in a perl script.
    GkotsovilisGkotsovilis
    Mar 17, 2002 at 1:44 pm
    Mar 18, 2002 at 2:51 pm
  • I'm fairly certain I'm attacking this incorrectly, so any advice is greatly appreciated... Task: I want to sort through my Solaris syslog (/var/adm/messages) looking for any system reboots which ...
    SwansongSwansong
    Mar 17, 2002 at 9:13 pm
    Mar 18, 2002 at 4:09 am
  • hi, I have a html form with over 100 fields, is there a quick way to assign them in the way that the scalar name becomes the name of the field and the value of the field is being assigned to that ...
    MariuszMariusz
    Mar 16, 2002 at 12:27 am
    Mar 17, 2002 at 9:29 am
  • Hi Does anyone know how to write to an Excel document? I've opened the document using OLE but I cannot find any documentation on how to store data in the spreadsheet. If anyone knows what the ...
    Allison OgleAllison Ogle
    Mar 12, 2002 at 5:18 pm
    Mar 14, 2002 at 9:57 pm
  • Hi guys I was wondering if you could help me with the following problem. I am getting the following error message: Use of uninitialized value in string ne at format_imsi_msisdn.pl line 257. line 257 ...
    Ho, TonyHo, Tony
    Mar 13, 2002 at 3:22 pm
    Mar 14, 2002 at 2:18 pm
  • hi i have a long text file. in this text file several strings of the form: ### filename.jpg ### are embedded. how should a regex look that takes following: <text before ### filename.jpg ### <text ...
    Martin A. HansenMartin A. Hansen
    Mar 13, 2002 at 8:06 am
    Mar 14, 2002 at 10:45 am
  • I am a true perl newbie. I am supposed to: Write a program that finds lines in an input file and copies them to an output file . The program takes the following arguments: an input file name (a ...
    MichaelMichael
    Mar 13, 2002 at 2:47 am
    Mar 13, 2002 at 4:39 pm
  • Hi, I have a file with say the value "02" in it. I can open the file, lock the file, read the value, increment the value and do a write but the write always appends and never over-writes the exisitng ...
    Ken ColeKen Cole
    Mar 8, 2002 at 2:14 am
    Mar 11, 2002 at 9:47 pm
  • Hi there, I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions, first if field 9 is duplicated on ...
    Dave AdamsDave Adams
    Mar 4, 2002 at 3:07 pm
    Mar 4, 2002 at 6:11 pm
  • Hey all, I need a Perl script to be able to have a user fill out an online form. Now this is easy enough but what I want is the user to check a couple of checkboxes and then have the script go and do ...
    Daniel FalkenbergDaniel Falkenberg
    Mar 4, 2002 at 1:44 am
    Mar 4, 2002 at 12:30 pm
  • Hello all, I want to read all of the directory names after $mydir, and then print those names into a file. How do I do this? Thanks!! -garrett MSN Photos is the easiest way to share and print your ...
    Garrett esperumGarrett esperum
    Mar 29, 2002 at 8:34 pm
    Apr 1, 2002 at 6:18 pm
  • I've heard that grep is fairly resource-intensive. Is there any truth to the rumors? Is there a time where using grep will be faster than cycling through an array? -----Original Message----- From: ...
    Timothy JohnsonTimothy Johnson
    Mar 30, 2002 at 12:24 am
    Mar 30, 2002 at 9:44 pm
  • ... replace every \t (tab character) which is NOT immediately proceeded by '454354' with '<br '? Thanks. I suspect this is any easy one, but I've been staring at it for an hour, and I can't figure it ...
    KEVIN ZEMBOWERKEVIN ZEMBOWER
    Mar 29, 2002 at 4:59 pm
    Mar 29, 2002 at 5:52 pm
Group Navigation
period‹ prev | Mar 2002 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions483
posts1,658
users361
websiteperl.org

361 users for March 2002

Timothy Johnson: 99 posts Jenda Krynicky: 77 posts Nikola Janceski: 69 posts Jonathan E. Paton: 56 posts John W. Krahn: 52 posts Jeff 'japhy' Pinyan: 46 posts Bob ackerman: 37 posts David Gray: 33 posts Chas Owens: 29 posts Elaine -HFB- Ashton: 25 posts Daniel Falkenberg: 24 posts Hanson, Robert: 24 posts Jason Larson: 24 posts Matthew Harrison: 22 posts Wagner-David: 22 posts Peter Scott: 20 posts Jon Molin: 19 posts Randal L. Schwartz: 18 posts William Ampeh: 17 posts Tanton Gibbs: 16 posts
show more
Archives