Search Discussions

535 discussions - 1,712 posts

  • 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 CassorlaJon 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 FalkenbergDaniel Falkenberg
    Oct 27, 2001 at 12:27 am
    Oct 27, 2001 at 7:34 am
  • 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 ...
    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 ...
    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 ...
    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
    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 kellnerBirgit 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 LawrenceJohn 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 ...
    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 kellnerBirgit 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=?us-ascii?Q?Rog=E9rio?= Brito
    Oct 5, 2001 at 11:09 pm
    Oct 10, 2001 at 3:16 pm
  • 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 FroeseGreg 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 GildenDavid 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 TambeMandar 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 saberiNafiseh 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 ManThe 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 MurdochShannon 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 TurnerDave Turner
    Oct 16, 2001 at 2:52 pm
    Oct 17, 2001 at 2:53 pm
  • 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, gabrielAurillo, 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 ...
    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 SanchoJosé 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 ManThe 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 MarcotteEtienne 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, StephanGross, Stephan
    Oct 19, 2001 at 7:00 pm
    Oct 29, 2001 at 8:23 am
  • 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 MarcotteEtienne 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 FroeseGreg 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 ManThe 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 SheinbaumMark 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 MarcotteEtienne 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, StefanDolfen, 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. CrawfordRichard 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, AndrewMason, Andrew
    Oct 3, 2001 at 2:34 pm
    Oct 23, 2001 at 12:41 pm
  • I use perl 5.005_03. how do I find out what modules are installed ? and how do I add new modules ?(where are they available?). thanks.
    Oct 5, 2001 at 10:21 am
    Oct 17, 2001 at 10:28 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 hoblittJosh 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 HoodMatthew 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.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, AndrewMason, 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 PetersRoy 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 lerenardP 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?
    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, AmitNisim, 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 ...
    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 saberiNafiseh 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 FroeseGreg 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 ...
    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. CrawfordRichard 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 FroeseGreg 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 CraigTobin 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 FalkenbergDaniel 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"] }; ...
    Oct 31, 2001 at 5:54 pm
    Oct 31, 2001 at 7:07 pm
Group Navigation
period‹ prev | Oct 2001 | next ›
Group Overview
groupbeginners @

396 users for October 2001

Brett W. McCoy: 91 posts Michael Fowler: 66 posts Jeff 'japhy' Pinyan: 52 posts Bob Showalter: 51 posts RaFaL Pocztarski: 50 posts Rex Arul: 49 posts Etienne Marcotte: 42 posts Brian d foy: 41 posts Andrea Holstein: 40 posts Curtis Poe: 35 posts Peter Scott: 30 posts Daniel Falkenberg: 28 posts Nafiseh saberi: 27 posts Birgit kellner: 22 posts Wagner-David: 19 posts Dave Storrs: 18 posts Abhra Debroy: 17 posts Walter valenti: 16 posts Greg Froese: 14 posts AMORE,JUAN (HP-Roseville,ex1): 14 posts
show more