N
narra.madan
can any one explain the meaning of the perl special variable @$;
the variable is used in the code..
tha part of the code is shown below..
#! c:\perl\bin\perl
use strict;
my(@fields);
@fields=qw("hello" "how" "are" "u");
print "@fields\n";
&do(\@fields);
print "@fields\n";
sub do
{
my($fields_1,@fields,$var);
$fields_1=@_;
@fields=@$fields_1;
$var=$fields[0];
print "$var\n";
}
the variable is used in the code..
tha part of the code is shown below..
#! c:\perl\bin\perl
use strict;
my(@fields);
@fields=qw("hello" "how" "are" "u");
print "@fields\n";
&do(\@fields);
print "@fields\n";
sub do
{
my($fields_1,@fields,$var);
$fields_1=@_;
@fields=@$fields_1;
$var=$fields[0];
print "$var\n";
}