thpfft has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way for me to distinguish these two values?
$foo->{bar} = {}; $foo->{ball} = {()};
I haven't found anything yet, but i'm hoping the first will somehow be undefined where the second is merely empty. Any chance?
(i'm looking for a simple way to allow module callers to say 'these rules', 'all rules' or 'no rules'. Thought this might be the key.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: {} vs {()}
by runrig (Abbot) on Sep 17, 2001 at 20:53 UTC | |
|
Re: {} vs {()}
by perrin (Chancellor) on Sep 17, 2001 at 20:52 UTC | |
|
(crazyinsomniac) Re: {} vs {()}
by crazyinsomniac (Prior) on Sep 18, 2001 at 10:34 UTC |