Re: [Perl-unix-users] Problem

2005-05-01 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > May anyone tell me if this program is wrong or if there is a > implementation problem in perl 5.8.6, 5.8.5, 5.8.2 > I will show the perl version and a c++ version. The c++ version > worked. I will also show the version of the perl version that > worked with a numbe

Re: [Perl-unix-users] Problem that I am having with split command

2004-04-14 Thread Jon Shorie
Thanks to everyone for all the help. It is now working. I am going to use the following code: ($a,$b,$c,$d,$e,$f) = split /[\-\/\.]/, $string; On Wednesday 14 April 2004 14:30, Stacy Doss wrote: > You need to be aware that split works on a regexp therefore the /./ is > matching any character. I

Re: [Perl-unix-users] Problem that I am having with split command

2004-04-14 Thread Andy_Bach
'.' is an RE metachar, so, at the least, you want to escape it: split(/\./ If you're fairly confident about the format: my ($a, $b, $c, $d, $e, $f) = split(/[^\d]/, $projectnumber); that is, split on non-digits or specify the actual chars: my ($a, $b, $c, $d, $e, $f) = split(/[-\/.]/, $projectnum

Re: [Perl-unix-users] Problem that I am having with split command

2004-04-14 Thread John Kulas
Jon, the dot (or period) is a reserved character, remember? You need to escape it if you want to use that character. Try ($c,$d,$e,$f) = split(/\./,$g); - John Kulas ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Ac

RE: [Perl-unix-users] Problem that I am having with split command

2004-04-14 Thread Stacy Doss
You need to be aware that split works on a regexp therefore the /./ is matching any character. I'm not sure what you vars $projectnumber and $pa are but I'll assum you want something like this $string = '500/00-7.1.19.3'; # This will split the whole string at once retaining only the digits for

RE: [Perl-unix-users] problem with profile.

2004-03-01 Thread Matt Schneider
Here is a sample line from my crontab where I do that exact thing 13 07-19 * * 0-6 . /home/grunt/.bash_profile; get_map_list.pl Matthew Schneider System Administrator / Programmer SKLD Information Services, LLC 303.820.0863 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: [Perl-unix-users] Problem installing Net::SSLeay

2003-09-30 Thread Kenneth A Buch
Ken, I can't comment on the 'out of memory' problem, but to force an install with the CPAN module, simple preface the command with 'force', e.g. cpan> force install Busines::OnlinePayment Ken On 20030926 10:28:28 -0700, Ken Hilliard wrote: > I was trying to install Business::OnlinePayment mod

RE: [Perl-unix-users] Problem writing to file

2003-02-18 Thread Einecker, Leah
You can find out the reason OUT is not opening as you expect by replacing this: open(OUT,">$outFile"); with this: open(OUT,">$outFile") or die "Cannot open OUT: $!"; >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 18, 2003 3:20 PM >To: Pe