----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Sent: Saturday, September 03, 2005 12:20 AM
Subject: syntax Error ..........


>
> Hi Guys...........
>
> Can u plz give me the write syntax for
> this
>
> foreach (@lookup_datatype){
> my $plus;
> ($plus) = /([0-9]+)/;
>
>
> print "$plus\n";
> }
>
> in this form......................
>
>
> foreach my $i (0 ..$#lookup_datatype){
> my $plus;
> ($plus) = /([0-9]+)/ , $lookup_datatype[$i];
>
>
> print "$plus\n";
> }
>

Whats wrong with the first-syntax. AFAIK, thats the Perlish way, not the
second one.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to