I am facing some sifficulties in understanding use of @_ in perl subroutines. @_ is a default array in which arguments passed to a subroutine are stored. Right, then why not use this staement for getting those arguments
my $a=@_ Why we use shift? look at this line of code..abc(3271); sub abc{ my $a=shift; #what is it? why are we shifting?? }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |