in reply to parsing parameters in a new() object call
fails on my system with a exists operator argument is not a HASH element at Yar.pm line 15..if (exists &$token)
According to the perldocs, exists only takes a hash key as an argument.
I'm not sure how you can go about testing for the existance of a subroutine short of something like
Which does work.eval "function()"; die "That function doesn't exist!" if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: parsing parameters in a new() object call
by YaRness (Initiate) on Jan 25, 2001 at 18:10 UTC |