in reply to 'or' Bug Bear
fred is a subroutine, not a variable. You're confusing things, because you're probably thinking that you want the scalar value that the subroutine returns.
Try this, it might make more sense to you:
my $fred = fred(); $fred or die "\n\tThis failed min!!!\n" ;
HTH :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'or' Bug Bear
by holli (Abbot) on Feb 10, 2005 at 11:54 UTC | |
by cog (Parson) on Feb 10, 2005 at 11:59 UTC |