Search Discussions
-
There are many ways to do this. Here is just one example using a closure. package Remember; # this is a closure { my $savedData = 0; # only accessible within this scope; side effect is that # it ...
Jon Cassorla
Oct 31, 2001 at 6:31 pm
Nov 5, 2001 at 7:38 pm -
Hey List, This may sound like the stupidest question so far but, I was wondering the other day is it possible for perl programs (script.pl) to be compiled like a C/C++ programs are? I can't really ...
Daniel Falkenberg
Oct 27, 2001 at 12:27 am
Oct 27, 2001 at 7:34 am -
14
eval problem
Hi everybody, I am facing a little problem with eval in perl. say I do the following: $a = "print \"hi\"" hi $b = eval($a) hi print $b 1 The above piece of code, prints the output of eval statement ...Minid
Oct 1, 2001 at 2:14 pm
Oct 4, 2001 at 4:28 pm -
Hi , Say I have an array in perl, @list = ("a=3", "b=5", "c=8", "d=9", "e=2", "f=0"); Now I want to find the index of the element "d=9" ( Index of d=9 is 3 here , as we all know ). How do we do that ...
Minid
Oct 3, 2001 at 11:43 am
Oct 3, 2001 at 5:30 pm -
Hello all, I am trying to process a menu option but for some reason perl causes the value to come up blank can anyone help? This is only hapening on the menu items. Is there a trick to sending drop ...
Me
Oct 31, 2001 at 4:40 pm
Nov 1, 2001 at 7:52 pm -
if I split: $line = "1:2:3:4:5"; @aaa = split (/:/ ,$line); I will get: @aaa = (1,2,3,4,5) How if I want to get: @aaa = (":1",":2",":3",":4",":5") how to do it? (":" can be a pattern) TIA, basssang
Basssang
Oct 22, 2001 at 3:53 pm
Oct 23, 2001 at 12:58 pm -
I vaguely recall having asked this question before, but can't find it anymore in the archives. BTW, is there any way to *search* the archives of this list? Anyway: I have a subdirectory tree stored ...
Birgit kellner
Oct 12, 2001 at 9:17 pm
Oct 15, 2001 at 6:56 pm -
A rather strange question I'm afraid, I'm just learning perl from (admittedly a rather old copy of) Learning Perl and I have been using chop() to remove the last character from a string etc. I have ...
John Richard Lawrence
Oct 6, 2001 at 1:14 pm
Oct 7, 2001 at 9:40 pm -
I need to create a hash with fixed elements and print all elements. I keep getting errors when I try to run what I put together. I commented out the different ways I tried to run the print. Now I ...
Neclos
Oct 22, 2001 at 7:17 pm
Oct 26, 2001 at 5:21 pm -
my $header = "Joe Doe<br <br The book I wrote yesterday"; my $title; if ($header =~ /(^\S.+)(<br <br )(\S.+$)/m) { $title = "$1: $3";} print "$title\n"; Is there a shorter, simpler, more efficient ...
Birgit kellner
Oct 19, 2001 at 11:39 am
Oct 23, 2001 at 12:58 pm -
Dear People, I am studying some topics on Bioinformatics and since I read a lot about Perl being employed in the area, I tried programming a very basic algorithm with it, the pair-wise sequence ...
=?us-ascii?Q?Rog=E9rio?= Brito
Oct 5, 2001 at 11:09 pm
Oct 10, 2001 at 3:16 pm -
11
use of ARGV
How can I test if something was passed to $ARGV[0]?? this is the line I'm using to test right now, and it works IF there is something passed, if ($ARGV[0] eq '') { however, if there is nothing ...Greg Froese
Oct 9, 2001 at 6:21 pm
Oct 10, 2001 at 1:35 pm -
Hi, As an exercise I have two files, a library file and a main file. If I try to 'use strict' my script won't run. What do I have to change so that things will work correctly with out clobbering any ...
David Gilden
Oct 26, 2001 at 8:57 pm
Oct 29, 2001 at 3:21 am -
Hello all Where can I get more information on How to test(QA) Website or client server application using Perl-win32::GuiTest. Thanks in advance. Mandar Tambe Prabodhan Exports Pvt. ...
Mandar Tambe
Oct 17, 2001 at 12:18 pm
Oct 19, 2001 at 4:45 pm -
hi all. what is the difference between compiler and interpreter ??? perl dont have any compiler ?? thx. ------------------------------------------------------ Best regards. nafiseh saberi. ...
Nafiseh saberi
Oct 16, 2001 at 6:57 am
Oct 16, 2001 at 8:28 pm -
Hi all, I'm trying to quickly insert a newline at the end of a bunch of files, but haven't been able to find an EOF metacharacter for use within a regexp. Anyone have any sugestions? Thanks, James ...
The Black Man
Oct 4, 2001 at 4:50 pm
Oct 9, 2001 at 4:58 am -
Hi all, I am wondering if there is any way that I can take the contents of a specific text file line number (I suppose it could be called a paragraph, since a line is considered ended by a CR/LF and ...
Shannon Murdoch
Oct 23, 2001 at 9:13 am
Oct 30, 2001 at 12:51 pm -
Is there a way -- short of parsing the input string -- of telling how many items you've passed in a CGI string? Thanks in advance!
Dave Turner
Oct 16, 2001 at 2:52 pm
Oct 17, 2001 at 2:53 pm -
9
@ARGV
All, In a Korn shell, can someone show me how to capture the backslash into @ARGV? My full command-line argument(s) looks like this: $ myperlscript.pl -dir c:\directory The problem is the directory ...Aurillo, gabriel
Oct 15, 2001 at 8:18 pm
Oct 16, 2001 at 6:20 pm -
Hi All, any one has a better way to count number of lines in a file than this one: $lines = 0; open(FILE, $filename) or die "Can't open `$filename': $!"; while (sysread FILE, $buffer, 4096) { $lines ...
F.H
Oct 11, 2001 at 3:20 pm
Oct 11, 2001 at 6:44 pm -
Hi: I am in need of a tip to name a sub with a '.' (dot) as sub www.com { bla, bla } Any suggestion? Thanks in advance, Jose Luis Sancho
José Luis Sancho
Oct 2, 2001 at 10:42 am
Oct 8, 2001 at 6:35 am -
Hi all, I'm trying to write a script that will pull out values for form data radio buttons for muliple answers. This is what a standard line looks like: <INPUT TYPE="radio" NAME="answer1" ...
The Black Man
Oct 2, 2001 at 10:14 pm
Oct 3, 2001 at 3:59 pm -
$allowed = $username eq 'admin' ? 1 : 0; Can someone explain me this line? I don't get the ? 1 : 0 part They say it need to be used instead of $allowed = 1 if $username eq 'admin'; for a mod_perl ...
Etienne Marcotte
Oct 30, 2001 at 2:57 pm
Oct 30, 2001 at 6:37 pm -
I'm matching a SQL date like this: $ftime =~ /(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)/; If $ftime is "2001-05-13 11:53:00", then $1 is "2001", $2 is "05", etc. However, I also want to match if the user ...
Gross, Stephan
Oct 19, 2001 at 7:00 pm
Oct 29, 2001 at 8:23 am -
8
mod_perl
I read often about that mod_perl that makes perl run a lot faster and etc. I tought until now that it was "by default" mod_perl when it's with the apache distribution, but Brett stated: "and ...Etienne Marcotte
Oct 24, 2001 at 4:13 pm
Oct 25, 2001 at 2:59 pm -
I'm working with my perl scripts in Linux and Windows. my scripts were running fine when I ran them as "perl myscript.pl" but when I tried to execute the perl script using only its name ...
Greg Froese
Oct 24, 2001 at 2:02 pm
Oct 24, 2001 at 3:34 pm -
Hi all, Is there a command to recursively list the contents of a directory, and all subdirectories? Thanks, James ===== "Still pond, frog jumps in. Splash!" "There he goes...one of God's own ...
The Black Man
Oct 16, 2001 at 3:10 pm
Oct 19, 2001 at 12:42 am -
I want to send email from a pl script using mailx. I'm having problems adding multiple destinations.Only 1 destination is receiving the email. I suspect the problem has to do with the quoting rules. ...
Mark Sheinbaum
Oct 17, 2001 at 9:24 pm
Oct 18, 2001 at 11:20 am -
Hello super-programmers:-) I have a problem that stops me completly in trying to develop my application. In the header of the program, I use require "filename" for 3 files, two of those have ...
Etienne Marcotte
Oct 12, 2001 at 5:01 pm
Oct 13, 2001 at 4:00 am -
Hello, how can I find the latest file in a directory ? thanks, Stefan
Dolfen, Stefan
Oct 29, 2001 at 8:17 am
Oct 29, 2001 at 4:35 pm -
I've got Apache running on this Win2K box, as well as MySQL. I can make PHP talk to MySQL, and I've managed to get Tomcat up and running and talking to Apache as well, but I seem to be at a loss when ...
Richard S. Crawford
Oct 24, 2001 at 4:16 pm
Oct 27, 2001 at 9:15 pm -
Say I have an array @array = ( 1, 2, 3, 4, 5) I know I want to remove the second value, $array[2]. How should I do this? Is it possible to issue a command that just does this for me or do I have to ...
Mason, Andrew
Oct 3, 2001 at 2:34 pm
Oct 23, 2001 at 12:41 pm -
I am working on a small preforking web server... everything works fine but I want to beable to send message from the children to the parent (other then sig chld). It seems like the call to can_read ...
Josh hoblitt
Oct 15, 2001 at 9:12 pm
Oct 16, 2001 at 7:43 pm -
Ok, here is my dilemma: When users type in a URL like http://www.domain.com/blabla/english101 I need them to be redirected to ...
Matthew Hood
Oct 10, 2001 at 8:57 pm
Oct 13, 2001 at 2:24 am -
Hi, i hope anyone can help me... i'm using MySQL and Perl but there's something that maybe i'm doing wrong i have this... $TOY=$db- query("select CU_NUMEMP from CAT_USERS where CU_USER='$KEY';"); and ...
Juan Luis Orozco M.
Oct 8, 2001 at 5:30 pm
Oct 8, 2001 at 7:13 pm -
Where are the archives? Sorry to ask such a dumb question but I don't know and it might save me posting others.
Mason, Andrew
Oct 4, 2001 at 3:28 pm
Oct 5, 2001 at 3:45 pm -
hi, Is there any way to return 2 or 3 scalar variables from a subroutine (like passing a variable by reference in C)? I would like to avoid returning an array, if possible, because it makes the ...
Roy Peters
Oct 31, 2001 at 2:44 pm
Oct 31, 2001 at 7:24 pm -
I tried this example, didn't work. In place of the picture I got nothing, but something was using the space. see the code do I miss anything? thank you Pierre use GD; # create a new image $im = new ...
P lerenard
Oct 25, 2001 at 3:53 pm
Oct 25, 2001 at 11:52 pm -
Is there a way to "block comment" in Perl? My book only covers using # to comment individual lines. Is there a symbol I can use to comment out entire sections of code for the debugging process?
SAWMaster
Oct 24, 2001 at 7:51 pm
Oct 24, 2001 at 8:30 pm -
Hi All, I want to get the name of the user that run the script. How can I do it ? Amit
Nisim, Amit
Oct 24, 2001 at 11:21 am
Oct 24, 2001 at 4:32 pm -
Hello all, I am trying to write a script that will combine 2 /etc/passwd files. The tricky part is that most of the entries from passwd1 are already in passwd 2 but some have errors. (some of the ...
John_Kennedy
Oct 22, 2001 at 6:29 pm
Oct 23, 2001 at 8:04 pm -
hi all... I read about "undef" a lot but.. I dont understand the difference between "undef" and "delete".. ? and why do we use undef... thx Best regards ......... Nafiseh Saberi Iran ......... notes ...
Nafiseh saberi
Oct 23, 2001 at 7:09 am
Oct 23, 2001 at 11:16 am -
How do I access Windows environment vars? I want to be able to test whether I'm in Windows or Linux, and this seems like a good way to do it. If there is an easier/better way, I'm all ears. Thanks ...
Greg Froese
Oct 19, 2001 at 12:16 pm
Oct 22, 2001 at 8:29 am -
Here is one way. I did it the way you wanted(or I thought) and I also did it as using + and * though the * from my command line has to have \* or '*' or "*" , but have one sub vs two to do the ...
Wagner-David
Oct 16, 2001 at 9:02 pm
Oct 19, 2001 at 12:32 am -
Here's a "beginning Perl" question for everyone: What's the best way to return the current date in the form of Day, Month Date, Year As in: Friday, October 12, 2001 I've looked in _Programming Perl_, ...
Richard S. Crawford
Oct 12, 2001 at 9:00 pm
Oct 15, 2001 at 1:09 pm -
I'm successfully connecting to a Pervasive 7 database with my PERL program when running from the command line. I try to run the program in my webbrowser and I get the following error. Error ...
Greg Froese
Oct 9, 2001 at 12:59 pm
Oct 12, 2001 at 8:15 pm -
Can anyone recommend a good tutorial that explains how to randomize data? Essentially I need to write something that will accept a list of records from a text file and churn out the list in random ...
Tobin Craig
Oct 10, 2001 at 2:19 pm
Oct 11, 2001 at 7:21 pm -
List, Could some one help me with the following. I have 2 lines in a text file that look like the following... [Crud1] [Crud2] How would I go about using a regex to find everything within [] and ...
Daniel Falkenberg
Oct 8, 2001 at 5:18 am
Oct 9, 2001 at 5:43 am -
I have a systems hash that contains the type of system as keys and the name of the machines as values: %systems = ( sgi = ["sgi1", "sgi2"], linux = ["linux1", "linux2"], dec = ["dec1", "dec2"] }; ...
Sofia
Oct 31, 2001 at 5:54 pm
Oct 31, 2001 at 7:07 pm
396 users for October 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)