Search Discussions
-
here's the rules: starts with alphanumeric 4 chars long require one period /^[a-zA-Z][\w\-\.]{3,}$/ I think my regex is not doing the required period. thanks, -rkl ...
Perl
Oct 10, 2003 at 6:55 am
Oct 11, 2003 at 3:38 pm -
I need to do recursive deletes. But according to perldoc I should not use unlink. I should use rmdir. However rmdir does not work unless the directory is empty.... Should I just system rm -r .... ...
Paul Kraus
Oct 1, 2003 at 7:55 pm
Oct 5, 2003 at 5:23 am -
Hello everyone, Thanks to everyone who helped with my last problem last week. I've hit a snag in another problem this week. I need to parse the following data: "COUNTRY MUSIC HALL OF FAME UPC#: ...
Kevin Old
Oct 21, 2003 at 4:45 pm
Oct 26, 2003 at 2:12 am -
Hi All my problem is one of progam concept, a data file is as below, my code (which is not doing what I want it to do is below) I want to parse a file with a known 3 blank lines to number 1, then for ...
Steve Massey
Oct 13, 2003 at 2:28 pm
Oct 13, 2003 at 7:24 pm -
Hello everyone, We use the Barracuda Spam appliance (barracudanetworks.com) to filter our spam and their web based interface is written in Perl. They have a form that allows the user to search ...
Kevin Old
Oct 9, 2003 at 3:55 pm
Oct 11, 2003 at 4:07 am -
I wan to write a sub return true or false if the var was initialized. Can someone correct this sub or is it good? ... if(isNULL($x) { print "it is null\n"); else { print "it is NOT null\n"); ... sub ...
Perl
Oct 2, 2003 at 9:23 pm
Oct 3, 2003 at 3:41 am -
Howdy folks, Yet another module question. I'm so close and I've done this but I can't get it to work. I am writing a module that is an extension/sub module of an existing module. use ... ...
Dan Muey
Oct 29, 2003 at 6:15 pm
Nov 11, 2003 at 4:47 pm -
I have a package which I wanted to make an object, so I had something like the following: sub new { my $proto = shift; my $class = ref($proto) || $proto; my $self; $self- {BOOL_1} = 0; $self- ...
Dan Anderson
Oct 16, 2003 at 7:36 pm
Oct 24, 2003 at 8:04 pm -
Hello everyone, I have a multidimensional array that I need to split into 4 multidimensional arrays. I've tried the examples from the Programming Perl 3rd ed. Chapter 9 for splicing Arrays of Arrays ...
Kevin Old
Oct 15, 2003 at 9:24 pm
Oct 18, 2003 at 2:56 pm -
Hi, I have a little problem. I have script "test.pl" and inside this script I want to know what is "my name" (I mean this "test.pl". test.pl script --------------- my $this_scripts_name_is = ...
Hannu Hirvonen
Oct 30, 2003 at 11:43 am
Nov 4, 2003 at 6:19 pm -
13
Issue
Hi, I'm trying to accomplish some task using perl. So let me describe what I have. I have several systems of the following: Unix: Sun - Solaris HP - HPUX Windows: Dell - Windows 2k Each of these OS's ...Bruce_phillip
Oct 27, 2003 at 7:32 pm
Oct 30, 2003 at 9:42 am -
Howdy group, In developing a module and I am torn. I want to use the newer our $variable; but to make it work with pre 5.6 Perl (or whatever version our appeared in) I have to do the use vars ...
Dan Muey
Oct 28, 2003 at 5:00 pm
Oct 29, 2003 at 3:45 pm -
Is it possible to create an alias in the shell from within Perl? I have a command I want to use in the shell after my Perl script executes. This command can vary, so what I would prefer to do is set ...
Harter, Douglas
Oct 17, 2003 at 3:08 pm
Oct 21, 2003 at 7:29 pm -
Question: If I have an array and want to take the first element off and return it, I would do it like this: return (@myArray) ? shift(@myArray) : undef; How would I do similarly with a hash? I have ...
Jeff Westman
Oct 10, 2003 at 3:40 pm
Oct 10, 2003 at 8:18 pm -
Hi everybody! Two questions: I've got a test-file and want to add something to some lines, while reading it out. I tried the following code: while (<TXTFILE ) { if (/pattern/) { #$line = $_ . ...
Christiane Nerz
Oct 27, 2003 at 9:45 am
Nov 19, 2003 at 7:49 pm -
Can someone show me how to pass multiple arrays argument? ie - ... mysub(@a, @b, @c); ... sub mysub { my @a = ? #arg1 an array $_[0] is not working my @b = ? arg2 another array $_[1] is not working ...
Perl
Oct 26, 2003 at 3:02 am
Nov 17, 2003 at 6:11 am -
How is speed affected in the following scenarios: 1) Using a number of if statements i.e. while ($foo) { do_1() if ($condition_1); do_2() if ($condition_2); # ... } 2) Using a series of if elsifs ...
Dan Anderson
Oct 15, 2003 at 9:34 pm
Oct 20, 2003 at 7:41 am -
Can someone help me with where to put the Date.xs file? I just downloaded the Class-Date-1.1.7.tar.gz. I figured out where to put the 2 files in /usr/lib/perl5/5.8.0/Class: - Class::Date.pm - ...
Perl
Oct 14, 2003 at 4:27 am
Oct 15, 2003 at 10:36 pm -
Can someone shorten this upper routine? sub toUpper { my $z = shift; $z =~ tr/a-z/A-Z/; return $z; } Also in a slightly different scenario, how can i change the value of the parameter itself with a ...
Perl
Oct 14, 2003 at 10:56 pm
Oct 15, 2003 at 2:04 am -
I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). My configuration: redhat 9/qmail/vpopmail The example below will ...
Perl
Oct 4, 2003 at 12:12 am
Oct 7, 2003 at 7:58 pm -
Hi, I've looked around to not much avail, what I'm looking for is a SELECT query that selects the last record in a database. Each table has the primary field "id", to which auto increments on each ...
Dan
Oct 25, 2003 at 9:43 am
Nov 13, 2003 at 6:10 am -
I've been enjoying perl for almost 2 years now, and I think I'm ready to step into interacting with a database. (big step!) I have mysql, and I have some simple tables. Now I want to be able to ...
Bryan Harris
Oct 31, 2003 at 6:49 am
Nov 3, 2003 at 2:47 pm -
Hi, i search hiw can i work on time. i want to get day number and make -1 Regards, Damien ********** L'ADSL A 20 EUR/MOIS********** Avec Tiscali, l'ADSL est à 20 EUR/mois. Vous pourrez chercher ...
Damien July
Oct 10, 2003 at 12:58 pm
Oct 27, 2003 at 9:56 am -
Is it really bad practice oneway or another with calling sub? &doMe; &doMe(); doMe; doMe(); Please explain in terms of performance and practice. thanks, -rkl
Perl
Oct 2, 2003 at 7:11 am
Oct 2, 2003 at 11:20 pm -
When I use the following code to dump a hash: $entry{"genre"} = $genre; $entry{"artist"} = $artist; $entry{"album"} = $album; $entry{"disc"} = $disc; $entry{"file"} = $file; $entry{"fullpath"} = ...
Dan Anderson
Oct 30, 2003 at 9:53 pm
Nov 9, 2003 at 8:10 pm -
Hi if i have an string lets say $stri="Joana Prado"; How do i transformm it into "joana prado" (all lowercase) Thanks
Andre Chaves Mascarenhas
Oct 20, 2003 at 10:03 am
Oct 26, 2003 at 7:19 am -
How can I convert it to a readable date? $now=time; print $now return 1066442632 I had tied perldoc time but it says: No documentation found for "time". thanks, ...
Perl
Oct 18, 2003 at 2:05 am
Oct 25, 2003 at 10:07 am -
How Can I call a perl script within my main script If I do $response=`perl $somescript $args`; This will call a new perl process, and may be more expensive on the system. On the other hand I can do ...
Ramprasad A Padmanabhan
Oct 21, 2003 at 6:58 am
Oct 22, 2003 at 8:48 am -
Hi! I know this is a no brainer, but this line of code does not always work: last if( /^\n/ or /^\s+\n/ ); What am I missing? Is there a better way? Thanks, Jerry
Jerry Preston
Oct 15, 2003 at 7:24 am
Oct 16, 2003 at 3:18 pm -
Hi everyone This is my first posting to the list, although I've been burried knee deep in perl books for some time and have been doing web development in other languages for some time. I'm working ...
Angie ahl
Oct 10, 2003 at 1:17 pm
Oct 10, 2003 at 8:16 pm -
I want to create a doc file that will contain my text, fonts, sizes as if i wrote manually. Can i do that thing?
John
Oct 7, 2003 at 3:17 pm
Oct 8, 2003 at 7:04 pm -
Hi, I've been playing around with the Tie::IxHash module. Here is my part of my code: tie my %commands, "Tie::IxHash"; %commands = ('sol'= {'hostname' = 'uname -n', 'os' = 'unamed -s', 'over' = ...
Bruce_phillip
Oct 31, 2003 at 7:40 pm
Nov 1, 2003 at 5:49 pm -
Hi, I'm trying to find my IP address from within Perl for eth0 and ppp0. Currently I run a regex on the output of ifconfig to extract his data - but, I'd like to do this from within Perl and it ...
Kevin Bewley
Oct 28, 2003 at 10:58 am
Nov 1, 2003 at 3:49 am -
Hi folks I've got a query about variable initialisation. I want to initialise a list of variables to an empty string, but I'm having troubles. What's the best wat to do this? If I use the following I ...
Gary Stainburn
Oct 3, 2003 at 2:58 pm
Oct 30, 2003 at 7:25 am -
Hi Gurus, I just finished up with a Perl program using Win32::Console on a Windoze NT system, Perl ver 5.6.1. I was wondering why with all the power of Perl, and all the functionality it has, why I ...
Ned Cunningham
Oct 24, 2003 at 4:00 pm
Oct 29, 2003 at 10:21 pm -
I am strapped for time on the run time on a perl script I have been working on. I was wondering if it is possible to open another shell within a perl script that will call another script that uses ...
Anthony J Segelhorst
Oct 28, 2003 at 1:55 am
Oct 28, 2003 at 5:21 pm -
Can someone hlpe me clean up this trim? Rule: remove all trailing blanks and newline/LF Do I need a chomp here somewhere? sub trim { my $z = $_[0]; $z =~ s/^\s+//; $z =~ s/\s+$//; return $z; } ...
Perl
Oct 15, 2003 at 2:23 am
Oct 15, 2003 at 2:31 pm -
Hi, I need help in simple threaded solution. How can I join the active thread? After I was started the thread I want him to join itself at the end and go back to the main Example: # main program ...
Igor Ryaboy
Oct 8, 2003 at 11:14 am
Oct 14, 2003 at 12:01 pm -
I'm doing a php to pl migration and having a little trouble. Help appreciated! Undefined subroutine &main::fopen called at C:\Inetpub\wwwroot\dg\index.pl line 91. I get the same error for filesize, ...
Dodo
Oct 8, 2003 at 3:35 pm
Oct 9, 2003 at 9:16 pm -
I need to remove ./ and #from a list of files. I can do it in sed but I am not able to use it in my perl script. I tried to do something like this chomp ($txtlist = <STDIN ); qx' sed -e "/^#/d ...
Raghu Murthy
Oct 22, 2003 at 5:21 pm
Nov 6, 2003 at 11:48 pm -
I'm having problems with corrupted data about every month or so. The problem seems to be that the New file sometimes writes only about half the old file. I was under the impression that flock would ...
Jimstone77
Oct 30, 2003 at 2:46 pm
Oct 30, 2003 at 8:39 pm -
Hi Perlers, I would have thought that this would initialize my $indent variable to 2 (like setting an initial state for an object), but if I call "indent()" I get nothing back. :-( { # static local ...
Kevin Pfeiffer
Oct 26, 2003 at 3:07 pm
Oct 29, 2003 at 11:19 am -
Hi All, How do i know the full name of a variable from its reference??. Say i have a routine defined like this: package Bar; sub foo {}; And then i say: my $x = \&foo; Now from this coderef ($x) i ...
Gupta, Sharad
Oct 23, 2003 at 12:37 am
Oct 28, 2003 at 6:13 pm -
Hi, I have a perl script that I would like to make available on-line. I suspect the target community (microbiologists) has no interest in getting/learning perl for themselves and would prefer to use ...
PD Schloss
Oct 15, 2003 at 2:03 pm
Oct 15, 2003 at 4:13 pm -
Hi, Silly question, is there an equal but opposite function to chop in Perl? I'd like to remove the first and last character of a string and am looking for a simple way to do it. So far I have: # ...
Li, William
Oct 7, 2003 at 4:57 pm
Oct 8, 2003 at 10:44 am -
Hi All, I am sure people must be doing that regularly. How do i package my Application to give to the customer??. Like creating packages for different platforms linux, debian, sun, windows etc. Any ...
Gupta, Sharad
Oct 3, 2003 at 6:32 pm
Oct 4, 2003 at 2:32 pm -
Hi I though I had sussed this s/ stuff but #! /usr/bin/perl -w $test = "BRIGHTON,,,,,,,,,,,,,,,, (Firm),,,,,,,,,,,,,,,,,,,,,,,,,,,,"; print "$test\n"; $test =~ s/,*/,/; $test =~ s/,*$/,/g; print ...
Steve Massey
Oct 23, 2003 at 10:32 am
Nov 6, 2003 at 11:54 pm -
Whichever module gets the job done the way you want it. I have used AppConfig with some success but it fails to handle overly complex structures (not its claim to fame either) some people (read: ...
Wiggins d Anconia
Oct 30, 2003 at 2:36 pm
Oct 31, 2003 at 2:34 pm -
Jeez, this is a beginner's list? Y'all are defining my ignorance of this here purrl stuff. I hope someone with patience can help me out. In a simple login/registration program using 5.6.1... ...
Jonathan Mangin
Oct 20, 2003 at 8:36 pm
Oct 21, 2003 at 5:47 pm -
Ok here is the scenioro I have two price lists that contain itemcode description cost list .... The important two are itemcode and description. One is our list the other is the price list of our ...
Paul D. Kraus
Oct 17, 2003 at 1:05 pm
Oct 18, 2003 at 8:31 am
244 users for October 2003
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)