Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to call a function only if a label doesn't exist as below but running into syntax error,Can some pls advise?
call_view () unless not exists "Label__$options{r}_$date"; exists argument is not a HASH or ARRAY element at c:\perl.pl line 136
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling a function based on a condition
by GrandFather (Saint) on Mar 14, 2011 at 00:09 UTC | |
|
Re: calling a function based on a condition
by cdarke (Prior) on Mar 14, 2011 at 09:25 UTC | |
|
Re: calling a function based on a condition
by Khen1950fx (Canon) on Mar 14, 2011 at 01:40 UTC | |
by wfsp (Abbot) on Mar 14, 2011 at 08:46 UTC |