in reply to Crazyness
otherwise, when is it lost? If $var never holds a value (i.e. directly after the $var = shift;) then I would look in the calling code, not the subroutine for the problem. If it gets set and goes away, print it at various spots and find out where it goes away...sub banner { die "Not enough arguments to banner" unless @_; my $var = shift; }
- Ant
|
|---|