FAQ

Search Discussions

285 discussions - 1,314 posts

  • 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 ...
    PerlPerl
    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 KrausPaul 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 OldKevin 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 MasseySteve 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 OldKevin 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 ...
    PerlPerl
    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 MueyDan 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 AndersonDan 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 OldKevin 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 HirvonenHannu 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_phillipBruce_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 MueyDan 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, DouglasHarter, 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 WestmanJeff 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 NerzChristiane 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 ...
    PerlPerl
    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 AndersonDan 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 - ...
    PerlPerl
    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 ...
    PerlPerl
    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 ...
    PerlPerl
    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 ...
    DanDan
    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 HarrisBryan 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 JulyDamien 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
    PerlPerl
    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 AndersonDan 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 MascarenhasAndre 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, ...
    PerlPerl
    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 PadmanabhanRamprasad 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 PrestonJerry 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 ahlAngie 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?
    JohnJohn
    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_phillipBruce_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 BewleyKevin 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 StainburnGary 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 CunninghamNed 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 SegelhorstAnthony 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; } ...
    PerlPerl
    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 RyaboyIgor 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, ...
    DodoDodo
    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 MurthyRaghu 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 ...
    Jimstone77Jimstone77
    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 PfeifferKevin 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, SharadGupta, 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 SchlossPD 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, WilliamLi, 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, SharadGupta, 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 MasseySteve 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 AnconiaWiggins 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 ManginJonathan 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. KrausPaul D. Kraus
    Oct 17, 2003 at 1:05 pm
    Oct 18, 2003 at 8:31 am
Group Navigation
period‹ prev | Oct 2003 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions285
posts1,314
users244
websiteperl.org

244 users for October 2003

Rob Dixon: 95 posts Perl: 80 posts Wiggins d Anconia.org: 57 posts James Edward Gray II: 51 posts Kevin Pfeiffer: 47 posts Dan Muey: 38 posts Steve Grazzini: 37 posts John W. Krahn: 36 posts Tristram Nefzger: 34 posts R. Joseph Newton: 28 posts Tore Aursand: 28 posts Daniel Staal: 24 posts Gary Stainburn: 24 posts Kevin Old: 21 posts Bruce_phillip: 19 posts Jeff 'japhy' Pinyan: 19 posts Dan Anderson: 18 posts Tim Johnson: 16 posts Randal L. Schwartz: 15 posts Jenda Krynicky: 14 posts
show more
Archives