or is that what you where saying all along?my $txt2print = MySub('This text') or warn('MySub said 0'); print $txt2print; sub MySub { my $txt = shift; $txt = { do something here } or return(0); return($txt); }
In reply to RE: RE: I use return on a subroutine
by BBQ
in thread I use return on a subroutine
by vroom
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |