So, if you are wanting to access the passed parameters directly, you will want to use $_[0] or alternately shift off values from the @_ array. eg.
sub get_long_count { my ($dd, $mon, $yyyy, $bc) = split /-/, $_[0], 4;
In reply to Re: Why does my subroutine not receive the scalar parameter as $_?
by rob_au
in thread Why does my subroutine not receive the scalar parameter as $_?
by @ncientgoose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |