FAQ

Search Discussions

507 discussions - 1,823 posts

  • By reading the messages everyday I can guess most of us are from United States right? And since there are not a lot of messages in (my) morning time, probably means most are from the west coast ...
    Etienne MarcotteEtienne Marcotte
    Nov 9, 2001 at 3:09 pm
    Nov 24, 2001 at 9:21 pm
  • my $line = "'text here'"; $line =~ s/^'//; $line =~ s/'$//; it works, but I can't do it in one single line.. Etienne
    Etienne MarcotteEtienne Marcotte
    Nov 6, 2001 at 3:50 pm
    Nov 8, 2001 at 1:55 pm
  • (Cross-posted to the Perl Beginners List) On Nov 15, Tommy Butler said: Bubble sort is a naive sorting algorithm. It's called "bubble" sort because the larger elements "rise" to the "top" of the ...
    Jeff 'japhy' PinyanJeff 'japhy' Pinyan
    Nov 16, 2001 at 12:39 am
    Nov 16, 2001 at 11:04 pm
  • Hi all, I would like to delete all single white spaces from a string without deleting concatenated white spaces. An example: $string= "I want to delete all this spaces, but this" The result would be: ...
    Pedro A Reche GallardoPedro A Reche Gallardo
    Nov 28, 2001 at 6:22 pm
    Nov 29, 2001 at 3:05 am
  • Hi, Iam a beginner in perl.I have one question, Iam trying to write one prog,in which i have to search for one word in a file, If I found that word,print next 4 lines. PLs help me,how to write code. ...
    Prasanthi TennetiPrasanthi Tenneti
    Nov 18, 2001 at 10:34 am
    Nov 21, 2001 at 11:55 pm
  • Sigh ! My mind simply refuses to work. What must I do to print the number of records $count in line 3. Thanks 1. @array = qw ( hello world hello how are you ); 2. $match = 'HEllo'; 3. print "Your ...
    MerryChristmas!MerryChristmas!
    Nov 16, 2001 at 6:49 am
    Nov 19, 2001 at 7:27 am
  • hi guys, can you see anything wrong with this program, especially on line 11 of the program, this program is giving a syntax error message sub good_word { my ($somename, $someguess) = @_; # name the ...
    ShirleyShirley
    Nov 7, 2001 at 4:14 pm
    Nov 28, 2001 at 7:13 pm
  • 13

    Split

    Hey all, I have a problem here that I don't really know how to go about. Basically I want to be able to find a user in the /etc/passwd with only a GID of 45 and a username of what I type the user ...
    Daniel FalkenbergDaniel Falkenberg
    Nov 27, 2001 at 4:54 am
    Nov 28, 2001 at 1:19 pm
  • hi all. how r u ? I wish all of you be fine and happy. I want to ... 1- open an existing file 2- read the number that exist in it 3- add it with 10 4-write the result in file. 5- note: I want to ...
    Nafiseh saberiNafiseh saberi
    Nov 28, 2001 at 11:12 am
    May 31, 2002 at 3:54 pm
  • Zysman, RoiyZysman, Roiy
    Nov 28, 2001 at 6:19 pm
    Nov 30, 2001 at 2:11 pm
  • hi all... do you know how do we can use shell function in perl ?? I tested them with put them in `` ,but dont give answer. thx ------------------------------------------------------------------------ ...
    Nafiseh saberiNafiseh saberi
    Nov 7, 2001 at 7:05 am
    Nov 27, 2001 at 7:13 pm
  • Hi, If I know the key and offset of the element, how can I delete that hash element, please? Your help will be appreciated. Ahmed
    Ahmed Moustafa Ibrahim AhmedAhmed Moustafa Ibrahim Ahmed
    Nov 20, 2001 at 8:44 pm
    Nov 20, 2001 at 10:48 pm
  • Perl: 5.6.0 OS: Solaris 7 Goal: Scan a text file for key words/values and populate a hash My parsing works, but the main() never sees the values properly. If I'm passing by reference, why isn't the ...
    Tomasi, ChuckTomasi, Chuck
    Nov 16, 2001 at 3:29 pm
    Nov 16, 2001 at 9:22 pm
  • Actually, it's the first time I've written a perl script that would be run more than once. It's the first time I didn't use another perl script as a guideline. It's the first time I've written a perl ...
    Carol StoneCarol Stone
    Nov 9, 2001 at 9:25 pm
    Nov 14, 2001 at 4:05 pm
  • Does anybody know how I can send a smallish binary file as an e-mail attachment, from perl (running on UNIX (OSFv.4.0)) Thanks Paul
    paul beckett (JIC)paul beckett (JIC)
    Nov 27, 2001 at 11:43 am
    Nov 27, 2001 at 3:32 pm
  • I have a script which in part takes a list of files in a directory (the name of each file is a number), sorts them numerically, and then runs through each file checking to see if any are missing, and ...
    Michael D. RisserMichael D. Risser
    Nov 8, 2001 at 7:02 pm
    Nov 16, 2001 at 8:45 pm
  • Given the month and the year, how can I derive what day the first landed on? Glenn Cannon glenn@eventsbeyondbelief.com Level II Certified DCI Judge 'There is no spoon.' www.eventsbeyondbelief.com
    Glenn CannonGlenn Cannon
    Nov 15, 2001 at 6:37 pm
    Nov 16, 2001 at 12:56 pm
  • System: Sun Ultra 2, Solaris 7 (11/99) Perl: 5.6.0 I have a series of related programs that need global definitions ($DOMAIN, $ADMIN, $DBNAME, etc). My code looks something like this: ----------<g.pl ...
    Tomasi, ChuckTomasi, Chuck
    Nov 8, 2001 at 3:45 pm
    Nov 8, 2001 at 11:45 pm
  • I know that when I call up a local HTML file from within Internet Explorer it works and renders the HTML correctly. Now is there a way to directly call Perl from within IE to create active HTML which ...
    Clive LansinkClive Lansink
    Nov 30, 2001 at 12:39 am
    Nov 30, 2001 at 6:31 pm
  • Howdy: I must be going about this the wrong way. I'm trying to modify a script and concatenates text files into one large file. That works. There is a part where inside the text file are six columns. ...
    Johnson, ShaunnJohnson, Shaunn
    Nov 29, 2001 at 4:55 pm
    Nov 30, 2001 at 10:13 am
  • Hi all, I am lost. I have the following script that opens the log file WUGEvent.log and looks for the statment "UP", replaces spaces and writes out the new log file. It works great! Here is the ...
    Craig SharpCraig Sharp
    Nov 26, 2001 at 12:47 pm
    Nov 26, 2001 at 5:04 pm
  • Hi, The following line of code "if (-d $filename) {" gives me the error message "Useless use of a variable in void context". What does this error message, please? Thanks --Ahmed
    Ahmed Moustafa Ibrahim AhmedAhmed Moustafa Ibrahim Ahmed
    Nov 23, 2001 at 7:32 pm
    Nov 25, 2001 at 10:39 pm
  • Perl: 5.6.0 DBI: 1.2.0 DBD::Oracle: 1.12 OS: Solaris 2.7 I'm reading in a list of users from an Oracle database. Some fields are required, some are optional (e.g. Title.) When I get back my populated ...
    Tomasi, ChuckTomasi, Chuck
    Nov 21, 2001 at 4:19 pm
    Nov 22, 2001 at 5:41 am
  • Hi! I have the follwing code: #!/usr/bin/perl -w open(FIC,"/home/collineau/Perl/Programmes/01_informatique/sauve/c0111_05.htm") open (TEMP," ...
    Franck CollineauFranck Collineau
    Nov 20, 2001 at 1:57 pm
    Nov 21, 2001 at 7:04 pm
  • I am receiving the following error when I attempt to use some variable data values. Perl version = v5.6.1 built for sun4-solaris "Not a CODE reference at ...
    Anderson, CarlinAnderson, Carlin
    Nov 21, 2001 at 3:19 pm
    Nov 21, 2001 at 4:31 pm
  • Is it possible read in the data then extract the Max value and Minimum value out of that data set using perl ? "Your life is not a coincidence, its a reflection of You." ...
    ShirleyShirley
    Nov 8, 2001 at 12:45 pm
    Nov 9, 2001 at 8:30 pm
  • I've read docs on security and I'm aware of that all user variables should be checked before doing something like opening a file, but can somebody show me how example below can compromise my website? ...
    Matija PapecMatija Papec
    Nov 26, 2001 at 6:00 pm
    Nov 29, 2001 at 12:02 am
  • has anyone implemented a 'better version' of the vacation program for themselves? I'm particularly interested in 'screening' the bulk-mail type messages that list me in their "bcc:" header so that my ...
    Scott R. GodinScott R. Godin
    Nov 27, 2001 at 10:34 pm
    Nov 28, 2001 at 5:26 pm
  • Hey all, Once again I feel as if the following code is far too long and can easily be shortened. Could some one give me some ideas on doing this? foreach my $U (sort keys %PASS) { $PASS{$U}{'fname'} ...
    Daniel FalkenbergDaniel Falkenberg
    Nov 26, 2001 at 11:46 pm
    Nov 28, 2001 at 4:41 pm
  • Hey all, Just a simple question could some one give me a clue as to what the folling regex will match... $user = "daniel"; if ( $test =~ /^$user/ ) { print "Hello world!\n"; } Will it match only ...
    Daniel FalkenbergDaniel Falkenberg
    Nov 26, 2001 at 4:53 am
    Nov 26, 2001 at 5:40 am
  • I can run perl script in the DOS batch file e.g. .... @echo Next line will run Perl Script perl perl_sample1.pl .... .... But, how can I run DOS batch files or commands and executable file in the ...
    Jason-YahooJason-Yahoo
    Nov 10, 2001 at 12:09 am
    Nov 24, 2001 at 9:22 pm
  • How can I filter out strings which contain two (or three) non-identical capital letters in a row? my $string1 = "ABCD"; my $string2 = "AbCd"; my $string3 = "AABcD"; Get $string1, discard $string2 and ...
    Birgit kellnerBirgit kellner
    Nov 16, 2001 at 9:44 pm
    Nov 19, 2001 at 11:00 pm
  • Hey Calvary; I am a new programmer fresh out of logic and program development school. Immediately I have been thrown into an environment where I have to learn 6 new computer languages...one of which ...
    BwhiteBwhite
    Nov 19, 2001 at 6:32 pm
    Nov 19, 2001 at 7:05 pm
  • Perl 5.6.0 Sun Solaris 2.7 I'd like to send two or more associative arrays (hashes) to a sub. It looks like the first one makes it but the values of the second never get passed. Am I doing something ...
    Tomasi, ChuckTomasi, Chuck
    Nov 15, 2001 at 5:54 pm
    Nov 15, 2001 at 9:39 pm
  • well, i want to install modules on my system(linux) that i have made. what i know is they are to be installed at @INC. but exactly how.....any suggestions.... any sources for reading... Bye, Rahul
    Rahul GargRahul Garg
    Nov 9, 2001 at 5:28 am
    Nov 13, 2001 at 11:05 pm
  • Hi gurus! I am traversing a multidimensional hash searching for a value and trying to delete it. However, I am ending up deleting the wrong one. The value I'm looking for is /name/. There is also a ...
    HANSONHANSON
    Nov 9, 2001 at 11:46 pm
    Nov 13, 2001 at 10:28 am
  • Hello all, I was wonder if there is a way to do this with less `$query- `'s. And yes, I know the table's not perfect. Any input would be appreciated. Thanks. ~Jess print $query- start_form, $query- ...
    Balint, JessBalint, Jess
    Nov 9, 2001 at 7:15 pm
    Nov 12, 2001 at 5:48 pm
  • Hi, I am looking for a PERL / better way of writing this: foreach my $t ( @{ $T_OWNER_INFO{ $owner }} ) { $items[ $j++ ] = $t; } $name = $items[ 0 ]; $phone = $items[ 1 ]; $pager = $items[ 2 ]; ...
    Jerry PrestonJerry Preston
    Nov 8, 2001 at 5:49 pm
    Nov 10, 2001 at 10:21 pm
  • Could anyone please show me the way to think here? If I execute a script with an argument, e.g monkey, then monkey will be found in $ARGV[0]. If I then want to highlight the word monkey by putting it ...
    Martin KarlssonMartin Karlsson
    Nov 4, 2001 at 11:54 am
    Nov 8, 2001 at 7:46 pm
  • Is there another way to get access to the environment variables... this works, but it seems kind of kludgy.. my $machine = `echo \$HOSTNAME`; Also, is there a way to detemine whether the script is ...
    Mark JohnsonMark Johnson
    Nov 8, 2001 at 3:02 pm
    Nov 8, 2001 at 5:33 pm
  • Hi, I have this code: opendir(DIR,"F:/DHS3MGR/E1302/PCMAO/BOOT_RES/BOOTP/LINUX"); my $box=$frm- BrowseEntry( -variable = \$_varRef3, -state = readonly ) - pack(-anchor = "w"); foreach (readdir(DIR)){ ...
    Jorge GoncalvezJorge Goncalvez
    Nov 7, 2001 at 8:36 am
    Nov 8, 2001 at 2:18 pm
  • I am running into problems when I use glob with csh, and try to work with large results. Here is a code snippet: my @result = glob("/mydir/*200110*"); print @result; When I run the above code, I do ...
    Cron, DanielCron, Daniel
    Nov 7, 2001 at 6:28 pm
    Nov 7, 2001 at 11:28 pm
  • Hi All, How do I create a 'MultiDimesional Hash' say of directory structure. Like 'Directories as keys' & 'files/subdirectories as the values' Thanks in advance ! Regards, Girish
    GirishGirish
    Nov 7, 2001 at 12:51 pm
    Nov 7, 2001 at 6:35 pm
  • Hello! I am new to the list, so forgive me if this is not the correct forum. I am writing (attempting to anyway) a script that will look at the size of the filesystem, and warn me if it is getting ...
    James KeltyJames Kelty
    Nov 26, 2001 at 10:17 pm
    Nov 27, 2001 at 3:22 pm
  • what may be the cause the filehandles don't work. I am using windows 98. Everything works fine exept the filehandles. Pc
    Purshottam ChandakPurshottam Chandak
    Nov 25, 2001 at 6:13 pm
    Nov 26, 2001 at 11:50 am
  • Hello, When using modules, is it better to say 'use Foo::Bar;' rather than 'require'. Also I've noticed that some people put their 'use' or 'require' statements in subroutines and not at the ...
    Ray MurphyRay Murphy
    Nov 16, 2001 at 1:37 pm
    Nov 16, 2001 at 5:49 pm
  • I am trying to replace all occurences of the word St with St. without generating St.. in the incorrect substitutions of St. The code I have been playing with is something like: $item = "35 Main St." ...
    Miretsky, AnyaMiretsky, Anya
    Nov 15, 2001 at 4:43 pm
    Nov 15, 2001 at 8:50 pm
  • Hi All, I have just written some codes, but they are not doing what I wanted them to do. Here are the codes: @motif= ('ACGTACGT', 'AAAATTTT', 'CCGGCCGG', 'GGCCGGCC'); print "Please enter sequences to ...
    Henry Hung-Yung WangHenry Hung-Yung Wang
    Nov 9, 2001 at 3:31 pm
    Nov 12, 2001 at 3:48 pm
  • Does anyone know why the following: use strict; use warnings; use constant I = 1; use constant I = 2; print I(); does not produce a warning about the redefinition of I? That is a real pain as I had ...
    Gibbs Tanton - tgibbsGibbs Tanton - tgibbs
    Nov 9, 2001 at 10:25 pm
    Nov 9, 2001 at 10:44 pm
  • I am trying to force the current year to be show as a two digit number, with leading zero if necessary. Here is what I am using currently, what am I doing wrong? #Code On @now = localtime; if ...
    Glenn CannonGlenn Cannon
    Nov 8, 2001 at 3:47 pm
    Nov 9, 2001 at 12:15 am
Group Navigation
period‹ prev | Nov 2001 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions507
posts1,823
users417
websiteperl.org

417 users for November 2001

Jeff 'japhy' Pinyan: 83 posts Etienne Marcotte: 75 posts Bob Showalter: 72 posts Brett W. McCoy: 53 posts John W. Krahn: 51 posts Wagner-David: 40 posts Rex Arul: 38 posts Jenda Krynicky: 36 posts MerryChristmas!: 34 posts Andrea Holstein: 33 posts Daniel Falkenberg: 33 posts Nafiseh saberi: 30 posts Jorge Goncalvez: 27 posts Michael Fowler: 26 posts Dave Storrs: 23 posts Jonathan E. Paton: 21 posts Peter Scott: 21 posts Randal L. Schwartz: 21 posts Ahmed Moustafa Ibrahim Ahmed: 20 posts Jim Conner: 20 posts
show more
Archives