T
thierry
Hi,
I am learning perl, and I have some questions regarding a script I am
studying .
Here is a portion of my script :
my (@sargs) = @_;
is it equivalent with : my @sargs = @_; ? (without bracket)
After there is :
my $config = {"delete" => 0, soFiles => []};
Is it right that $config is a hash table ?
I have a doubt, because I would write : my %config = ( "delete" => 0,
soFiles => [] );
is these 2 lines are equivalent ?
my $config = {"delete" => 0, soFiles => };
my $config = {"delete" => 0, "soFiles" => };
After that, delete is initialized like this :
$config->{delete} = 1; # why -> is it a reference ?
why not to use : $config{delete} = 1 ?
Thanks for your help. And sorry for these questions...
thierry
I am learning perl, and I have some questions regarding a script I am
studying .
Here is a portion of my script :
my (@sargs) = @_;
is it equivalent with : my @sargs = @_; ? (without bracket)
After there is :
my $config = {"delete" => 0, soFiles => []};
Is it right that $config is a hash table ?
I have a doubt, because I would write : my %config = ( "delete" => 0,
soFiles => [] );
is these 2 lines are equivalent ?
my $config = {"delete" => 0, soFiles => };
my $config = {"delete" => 0, "soFiles" => };
After that, delete is initialized like this :
$config->{delete} = 1; # why -> is it a reference ?
why not to use : $config{delete} = 1 ?
Thanks for your help. And sorry for these questions...
thierry