Search Discussions
-
I have a subroutine that returns 3 array refs. so i have: my ($stats, $totals, $loads) = gets_stats(); $stats and $totals are reference to arrays of arrays. $loads is just a ref to an array. what i ...
Kipp, James
Jun 18, 2002 at 2:35 pm
Jun 19, 2002 at 12:12 pm -
Hi there, I think there's too many andvanced users here who ask DBI questions. I can't understand anything. Perl.beginners and perl.beginners.cgi are both too overloaded. Noone can read 80 massages a ...
Yasen Petrov
Jun 29, 2002 at 7:16 am
Jul 7, 2002 at 10:41 am -
OK, here is a "real" beginners question, but interesting nonetheless: Sample code: $b = 1; $b = $b++; Result: $b = 1 Which strikes me as a little surprising. Shouldn't the result be 2? What is ...
Michael Turner
Jun 30, 2002 at 2:25 pm
Jul 1, 2002 at 5:54 am -
Hi, all -- I'm trying to be good and so I use "my $variable" rather than making them global, and I prefer to not stick little [potentially-confusing] "my" declarations around through the code so I ...
David T-G
Jun 12, 2002 at 1:40 pm
Jun 15, 2002 at 7:27 am -
Hi all, I am runing a windows 2000 server and I have just installed perl that I got from ActiveState.com. I have been playing and have come up against a few problems. 1) It seems that writing perl ...
A Taylor
Jun 18, 2002 at 1:34 pm
Jun 18, 2002 at 9:16 pm -
Hi, all -- [I should probably note early on that I do have some preferences that don't match what many coders do but which I will very probably continue anyway, like how I place braces, but that I ...
David T-G
Jun 8, 2002 at 11:48 pm
Jun 10, 2002 at 4:09 am -
17
split
hi guys, I would like to split a line like that # FRI MAY 02 .... in two parts: $bash = # $rest = FRI MAY.... in my version ($bash, $rest) = split(/\s/, $line); $rest only contains "FRI" because the ...Stefan Haberer
Jun 4, 2002 at 11:49 am
Jun 28, 2002 at 5:26 pm -
Hello, What is the best way to get just the date out of this string? $line ='June 29, 2002|6-7:45pm|Nashua Summer Fest|Downtown TBA|Nashua, NH'; my @date; @date = split(/\|/,$line); print $date[0]; # ...
David Gilden
Jun 17, 2002 at 6:41 am
Jun 17, 2002 at 11:36 pm -
Something occured to me the other day and I'm interested to know what people's opinions are on this list. When I'm reading the camel or other Perl books such as Perl and XML, the majority of the ...
Nigel Peck
Jun 21, 2002 at 3:43 pm
Jun 27, 2002 at 12:55 pm -
16
perl email
I have a perl scipt that emails certain information to me. I would like a certain line to be in bold or a different color when it is emailed. Is there a way to do this? Ernest P. Tucker II Network ...Tucker, Ernie
Jun 26, 2002 at 5:37 pm
Jun 26, 2002 at 7:22 pm -
Hello, I'm a sys-admin on an AIX (4.3) machine, and I'm trying to work with a vendor program that doesn't behave very nicely. Basically, if a user's connection to the server is inappropriately ...
Akens, Anthony
Jun 11, 2002 at 3:51 pm
Jun 13, 2002 at 5:16 pm -
my box is behind a D-Link router 704. The router gets its ip from my isp using dhcp. anyone know how to get that external ip from the router? is any module designed to find your external ip when you ...
Bob ackerman
Jun 10, 2002 at 5:36 pm
Jun 12, 2002 at 1:38 pm -
Sometimes I'd like to run a perl program in a similar way as one can run a shell script with the -x switch. Where all commands and actions are printed to tty as the occur. How does one simulate that ...
Harry Putnam
Jun 22, 2002 at 4:34 am
Jun 24, 2002 at 11:55 am -
14
Formatting
Hi, I have a requirement. I need to output data in a file which will be column specific. Eg. Column 1-2 Data1 Column 3-10 Data2 Column 11-12 Data3 ....and so on. Now, the data can be both decimal as ...Shishir K. Singh
Jun 17, 2002 at 2:24 pm
Jun 21, 2002 at 8:14 pm -
Slightly OT, but does anyone know how to pass an empty string to a script via the command line? I have a script that is invoked via: rename match-str replace-str <list of files .... where the rename ...
Bryan R Harris
Jun 10, 2002 at 10:38 pm
Jun 11, 2002 at 4:23 pm -
Hey all, Okay.. I am stumped. I must be doing something wrong. I am going to post only the relevant code, let me know if you need more. # $FUNC is a ref to a hash ## in a subroutine foreach my ...
Nikola Janceski
Jun 6, 2002 at 3:33 pm
Jun 7, 2002 at 12:45 am -
hi all of you, i have a multiple perl files that use the same subroutines, the only way i know to handle this - i know its not so cleaver - is to copy & paste the portion of the subroutine in all ...
Hytham Shehab
Jun 23, 2002 at 9:31 pm
Jun 26, 2002 at 4:58 pm -
I need a regex to match a string if the first colon in the string is immediately followed by another colon. For example: blah::blah blah: This would match blah:blah blah: This would not ...
Akens, Anthony
Jun 19, 2002 at 6:22 pm
Jun 21, 2002 at 7:33 am -
Just wondering if anyone here has experience with code that allows Getopt::Std to handle more arguments per option than the normal 1? I've had occasion to want to process several for each option at ...
Harry Putnam
Jun 19, 2002 at 11:13 pm
Jun 20, 2002 at 6:01 pm -
How would I get rid of one trailing white space character in $HASH{$key} and reassign the result OR how would I match a variable with 1 trailing white space to a variable that has no trailing white ...
Alaric Joseph Hammell
Jun 11, 2002 at 8:28 pm
Jun 17, 2002 at 7:19 pm -
I have this situation: $in = "02 Jul 5.00 (YHZ GA-E)" I want: $out = "YHZGA-E" How do I extract the information between the ()s ? Other than the parens all other characters are likely to change. -todd
Todd shifflett
Jun 26, 2002 at 3:31 pm
Jun 26, 2002 at 8:43 pm -
11
Reading File
Hi, Let's say I'm opening a file. How do I read the last line of the file? is there any function in doing so? Thanks.Karen Liew Ying Ping
Jun 24, 2002 at 10:10 am
Jun 25, 2002 at 5:02 am -
Hi, I have recuperated a module from the web and I interfaced with it but STDOUT is closed . If I do a : print STDOUT "hello\n" in my script, nothing appeared . I don't know where STDOUT is closed ...
Franck FASANO
Jun 13, 2002 at 2:19 pm
Jun 15, 2002 at 7:04 pm -
11
IP address
Hello, I have a requirement to get the IP address of a user logged from a remote machine on to UNIX machine. Now the user can be using multiple logins through VPN or otherwise. I need to create ...Shishir K. Singh
Jun 7, 2002 at 4:42 pm
Jun 7, 2002 at 9:43 pm -
[..] [..] the code that you wrote fully executed - the problem is that it did exactly what you told it - not what you wanted.... 8-) I think the confusion here is understanding that use FOO; will ...
Drieux
Jun 24, 2002 at 8:04 pm
Jun 28, 2002 at 6:30 pm -
Hi there, I want to write a perl application for a win32 operating system. The application must be using windows,forms, the same interfaces like the ones you get using delphi or visual basic. I mean ...
Joe Echavarria
Jun 27, 2002 at 3:01 pm
Jun 27, 2002 at 9:31 pm -
Is there? So that I don't have to constantly type it. Thanks.
LRZ
Jun 24, 2002 at 4:22 pm
Jun 26, 2002 at 9:40 pm -
how does one prevent this script from printing "hello"?. in large scripts where you may inadvertently reuse variable names, this causes errors. is there some way to get perl to disallow the global ...
Martin A. Hansen
Jun 20, 2002 at 7:20 am
Jun 20, 2002 at 6:13 pm -
Hello, I have an smp machine that I want to run two instances of setiathome on. I have two s@h directories (/root/.setiathome and /root/.setiathome2). I wrote this to run both of them at the same ...
Tyler Longren
Jun 18, 2002 at 4:10 pm
Jun 20, 2002 at 2:32 pm -
Hi all I posted this on the CGI list but no response at all. Please have a look at this problem. I am reading from an html file and writing to another. The while loop terminates before the complete ...
Aman cgiperl
Jun 10, 2002 at 5:22 pm
Jun 10, 2002 at 7:15 pm -
Hello. I am writing a quick script in order to parse a users $PATH variable, but I hit upon a quandry. The PATH environment is one long string with element separated by a ":", no mystery there, but ...
James Kelty
Jun 4, 2002 at 9:57 pm
Jun 5, 2002 at 3:13 pm -
Hi, I need some help on the following. In my script I show users some infodocs after they are verified to be valid users. Users can have the permissions following the ruleset: - user (all perm) - ...
David vd Geer Inhuur tbv IPlib
Jun 24, 2002 at 10:07 am
Jun 25, 2002 at 1:19 pm -
Hi, I have a C program. In there is a function that I need for perl. This is the first time I am dealing with the C / Perl Interface. Is there any detailed reading material on how it's done ?? Any ...
Shishir K. Singh
Jun 18, 2002 at 2:00 pm
Jun 19, 2002 at 8:07 pm -
Hi, Is there a way to get the number of lines in a file. Conditions: a) Without using backticks on wc -l b) Without opening the file and looping over the records Thanks Shishir
Shishir K. Singh
Jun 18, 2002 at 3:49 pm
Jun 19, 2002 at 7:30 pm -
Can this be simplified with less variables? sub rcsname { my $file = shift; (my $rcsfile = $file) =~ s{somepattern}{andsubstitution}; return $rcsfile; } ### remember that the original arguement ...
Nikola Janceski
Jun 11, 2002 at 1:16 pm
Jun 12, 2002 at 8:12 pm -
Hello folks, I am trying not to re-invent the wheels. So I was wondering whether there is a little program that you good people might know of the would do the following for me: Here's an example: ...
Rasoul Hajikhani
Jun 7, 2002 at 7:50 pm
Jun 8, 2002 at 10:16 pm -
Hello, I am facing a problem in using regular expression on array. My code is written below: open(FILE, $dirvalue) ; my @lines = <FILE ; print @lines; # prints the file contents if( @lines =~ ...
Ankit Gupta
Jun 5, 2002 at 7:50 pm
Jun 7, 2002 at 4:29 pm -
Hi guys, I will have the file that will start with the following line: Dear Name (ID12345) .... .... .... .... Do you know how can I parse the above file, so I can retrieve the ID12345? idNumber = ...
Lz
Jun 6, 2002 at 8:15 pm
Jun 6, 2002 at 10:40 pm -
Can someone help please. I'm learning from scratch. What is this? $_='My email address is <webslave@work.com .'; /(<.* )/i; print "Found it ! $1\n"; I can only identify one command here. Print. How ...
Adam Vardy
Jun 5, 2002 at 2:25 am
Jun 6, 2002 at 12:55 pm -
Is there any function to tell if a number is even or odd? I am looking for an easy way to loop through a list and output table cell bgcolor based on even / odd. if its an even numbered row make it ...
Zachary Buckholz
Jun 5, 2002 at 2:09 am
Jun 5, 2002 at 6:20 pm -
Hello all, I am working on a script that I have several debug statements that try to tell me what is contained in a hash referrence. While I am tailing the log file, the hashes derefference ...
Shawn
Jun 22, 2002 at 9:02 pm
Jun 23, 2002 at 12:50 pm -
Lo all, How can I convert a date such as '18 Jun, 2002 at 11:00:00 (SAT)' into a DD/MM/YYYY HH:MM string? I've been on google for quite some time now, and looked at quite a few CPAN stuff, but I ...
Chris Knipe
Jun 19, 2002 at 2:33 am
Jun 20, 2002 at 12:17 pm -
Greetings! I'm in need of passing parameters via command line to a program. I understand the basics of Getopt::Std and Getopt::Long. However, there is something I'd like to do which I don't think ...
Jason Frisvold
Jun 19, 2002 at 3:22 pm
Jun 19, 2002 at 5:08 pm -
Hi, I just added to my Linux System(RedHat), MySQL and i want to write a program in PERL that adds user account. if i'm working directly with Linux i would open the shell command and type shell mysql ...
Anthony
Jun 16, 2002 at 7:50 pm
Jun 17, 2002 at 5:06 am -
, I seem to recall a discussion on a RegEx to match an IP address, but can't seem to find it. Anyone have any ideas, or recall what it would be? Or could toss it together? First Octet is 1-255 ...
Tim Musson
Jun 14, 2002 at 12:47 pm
Jun 14, 2002 at 8:29 pm -
Hi folks! Well, here's one I'm just not getting to grips with. I'm parsing a configuration file for an application, and it has a parameter as such: Parameter=Value1 Value2 Value3 \ Value4 Value5 ...
Anders Holm
Jun 11, 2002 at 1:40 pm
Jun 12, 2002 at 1:53 pm -
Hi, How can fetch all the environment variables and print them to the screen? +-----------------------------------------------------------------------------------+ Philip Humeniuk phumes1@rogers.com ...
Phumes1
Jun 11, 2002 at 6:49 pm
Jun 11, 2002 at 7:27 pm -
Might I trouble you kind folks for a bit of feedback? This is my first real script I put together in which it collects all users from the output of the 'repquota -a' command who have not yet had ...
William Melanson
Jun 10, 2002 at 12:37 pm
Jun 10, 2002 at 9:52 pm -
We have a log file that gets really huge, so I wanted to to edit it in place to delete old entries and only leave today's entries in the current log. The process writing to the log doesn't come down ...
Rice, Elizabeth A.
Jun 28, 2002 at 6:28 pm
Jul 1, 2002 at 5:39 pm -
Hello, I am currently working on a search-eingine for .txt files I am searching for $word in each .txt file. Now of course the ability to search for 2 words in the document, must become possible. ...
David vd Geer Inhuur tbv IPlib
Jun 25, 2002 at 1:56 pm
Jun 28, 2002 at 7:58 pm
273 users for June 2002
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)