Search Discussions
-
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 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 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' 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 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 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!
Nov 16, 2001 at 6:49 am
Nov 19, 2001 at 7:27 am -
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 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 saberi
Nov 28, 2001 at 11:12 am
May 31, 2002 at 3:54 pm -
Zysman, 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 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 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, 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 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)
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. 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 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, 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 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, 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 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 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, 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 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, 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." ...
Shirley
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 Papec
Nov 26, 2001 at 6:00 pm
Nov 29, 2001 at 12:02 am -
7
vacation
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. 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 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 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-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 kellner
Nov 16, 2001 at 9:44 pm
Nov 19, 2001 at 11:00 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, 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 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 ...
HANSON
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, 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 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 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 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 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, 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
Girish
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 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 Chandak
Nov 25, 2001 at 6:13 pm
Nov 26, 2001 at 11:50 am -
6
Modules
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 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, 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 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 - 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 Cannon
Nov 8, 2001 at 3:47 pm
Nov 9, 2001 at 12:15 am
417 users for November 2001
Archives
- May 2016 (29)
- March 2016 (38)
- February 2016 (66)
- January 2016 (62)
- December 2015 (36)
- November 2015 (59)
- October 2015 (35)
- September 2015 (32)
- April 2015 (18)
- March 2015 (101)
- February 2015 (74)
- January 2015 (99)
- December 2014 (74)
- November 2014 (65)
- October 2014 (47)
- September 2014 (66)
- August 2014 (68)
- July 2014 (171)
- June 2014 (85)
- May 2014 (126)
- April 2014 (36)
- March 2014 (162)
- February 2014 (154)
- January 2014 (94)
- December 2013 (42)
- November 2013 (71)
- October 2013 (192)
- September 2013 (143)
- August 2013 (114)
- July 2013 (141)
- June 2013 (201)
- May 2013 (163)
- April 2013 (90)
- March 2013 (125)
- February 2013 (150)
- January 2013 (185)
- December 2012 (120)
- November 2012 (101)
- October 2012 (117)
- September 2012 (180)
- August 2012 (319)
- July 2012 (170)
- June 2012 (223)
- May 2012 (249)
- April 2012 (298)
- March 2012 (311)
- February 2012 (261)
- January 2012 (155)
- December 2011 (282)
- November 2011 (266)
- October 2011 (316)
- September 2011 (369)
- August 2011 (371)
- July 2011 (310)
- June 2011 (392)
- May 2011 (434)
- April 2011 (630)
- March 2011 (440)
- February 2011 (282)
- January 2011 (419)
- December 2010 (319)
- November 2010 (314)
- October 2010 (360)
- September 2010 (256)
- August 2010 (223)
- July 2010 (340)
- June 2010 (298)
- May 2010 (483)
- April 2010 (683)
- March 2010 (480)
- February 2010 (339)
- January 2010 (322)
- December 2009 (531)
- November 2009 (558)
- October 2009 (375)
- September 2009 (449)
- August 2009 (497)
- July 2009 (428)
- June 2009 (306)
- May 2009 (293)
- April 2009 (362)
- March 2009 (477)
- February 2009 (467)
- January 2009 (408)
- December 2008 (405)
- November 2008 (545)
- October 2008 (770)
- September 2008 (662)
- August 2008 (663)
- July 2008 (773)
- June 2008 (730)
- May 2008 (650)
- April 2008 (791)
- March 2008 (692)
- February 2008 (399)
- January 2008 (694)
- December 2007 (581)
- November 2007 (688)
- October 2007 (882)
- September 2007 (709)
- August 2007 (1,243)
- July 2007 (849)
- June 2007 (898)
- May 2007 (796)
- April 2007 (587)
- March 2007 (705)
- February 2007 (521)
- January 2007 (578)
- December 2006 (565)
- November 2006 (555)
- October 2006 (704)
- September 2006 (734)
- August 2006 (725)
- July 2006 (884)
- June 2006 (681)
- May 2006 (703)
- April 2006 (889)
- March 2006 (724)
- February 2006 (607)
- January 2006 (588)
- December 2005 (684)
- November 2005 (664)
- October 2005 (682)
- September 2005 (616)
- August 2005 (743)
- July 2005 (716)
- June 2005 (670)
- May 2005 (809)
- April 2005 (830)
- March 2005 (1,020)
- February 2005 (740)
- January 2005 (784)
- December 2004 (873)
- November 2004 (910)
- October 2004 (1,242)
- September 2004 (936)
- August 2004 (911)
- July 2004 (1,101)
- June 2004 (1,026)
- May 2004 (945)
- April 2004 (1,161)
- March 2004 (1,485)
- February 2004 (1,608)
- January 2004 (1,512)
- December 2003 (1,607)
- November 2003 (1,437)
- October 2003 (1,314)
- September 2003 (1,382)
- August 2003 (1,351)
- July 2003 (1,559)
- June 2003 (1,576)
- May 2003 (1,586)
- April 2003 (1,600)
- March 2003 (1,731)
- February 2003 (1,641)
- January 2003 (2,020)
- December 2002 (1,360)
- November 2002 (1,198)
- October 2002 (1,677)
- September 2002 (1,905)
- August 2002 (1,685)
- July 2002 (1,975)
- June 2002 (1,900)
- May 2002 (2,332)
- April 2002 (2,098)
- March 2002 (1,658)
- February 2002 (2,237)
- January 2002 (2,304)
- December 2001 (1,568)
- November 2001 (1,823)
- October 2001 (1,712)
- September 2001 (1,289)
- August 2001 (1,993)
- July 2001 (2,424)
- June 2001 (3,399)
- May 2001 (1,797)
- April 2001 (650)