in reply to Re^2: Is { } an empty block or a bug in perl?
in thread Is { } an empty block or a bug in perl?
you could use a code block there too if you want to ( || do { ... }).sub gimme_my_data { my $self = shift; $self->{data} || {} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is { } an empty block or a bug in perl?
by thor (Priest) on Jul 06, 2005 at 22:51 UTC | |
by Joost (Canon) on Jul 06, 2005 at 23:48 UTC | |
by thor (Priest) on Jul 07, 2005 at 02:24 UTC |