On Monday, April 29, 2002, at 02:42 , Chas Owens wrote:
[..]
>
> EVAL METHOD
> #!/usr/bin/perl -w
> use strict;
>
> my @fred = "one,two,three,four";
>
> for my $a (0..3) {
> eval "my \@array$a=split(/,/, \@fred)";
> }
>
> for my $b (0..3) {
> eval qq(print \@array$a[\$b], "\\n");
> }
what does the error message:
File "Jeeves:Users:drieux:perl:Begers:TwoIndirects.pl"; Line 25: Global
symbol "@a" requires explicit package name
and
File "Jeeves:Users:drieux:perl:Begers:TwoIndirects.pl"; Line 34: syntax
error near "@fred]"
mean????
>
> ARRAY OF ARRAYREFS METHOD
> #!/usr/bin/perl -w
> use strict;
>
> my @fred = "one,two,three,four";
>
> my @array;
>
> for my $a (0..3) {
> $array[$a] = [split(/,/, \@fred];
> }
>
> for my $b (0..3) {
> print @{$array[$b]}, "\n";
> }
this one also doesn't deconstruct the way you would prefer...
but I think we are pointing the cat in the right direction...
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]