The sub keyword will only define the subroutine once
This is interesting and, to me at least, unexpected. Why does this only warn once instead of twice?
perl -wle 'for(1,2){ sub moo{} }; sub moo{}' Subroutine moo redefined at -e line 1.
In reply to Re^2: Array ending up empty when processing more than a single file
by Your Mother
in thread Array ending up empty when processing more than a single file
by TJCooper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |