$;

what is the $;
Thanks.
George Bouras [ Mi, 12 Januar 2005 09:17 ] [ ID #581039 ]

Re: $;

George Bouras wrote:
> what is the $;

It's obsolete. `perldoc perlvar` says to see `perldoc perllol` instead.
-Joe
Joe Smith [ Mi, 12 Januar 2005 10:25 ] [ ID #581040 ]

Re: $; hmmm , do not know its better

Ok I found it at the faqs, sorry, but now I do not know which way is
more memory and speed efficient !!!
--------------------------------------

my %hash;
$hash{0,0}='line_0 col_0';$hash{0,1}='line0 col_1';
$hash{1,0}='line_1 col_0';$hash{1,1}='line1 col_1';
$hash{2,0}='line_2 col_0';$hash{2,1}='line2 col_1';

print $hash{1,1};

# or

my $array=[
['line_0 col_0','line0 col_1'],
['line_1 col_0','line1 col_1'],
['line_2 col_0','line2 col_1']];

print $array->[1][1];
George Bouras [ Mi, 12 Januar 2005 10:45 ] [ ID #581041 ]
Perl » alt.perl » $;

Vorheriges Thema: read a list of a directory
Nächstes Thema: passing data