[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
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
'.' 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
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
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
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
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
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