you could use a code block there too if you want to ( || do { ... }).sub gimme_my_data { my $self = shift; $self->{data} || {} }
In reply to Re^3: Is { } an empty block or a bug in perl?
by Joost
in thread Is { } an empty block or a bug in perl?
by cog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |