in reply to What means: "bless { @_ } => $class;"?
B::Deparse can be useful in situations like this.
$ perl -MO=Deparse -e 'sub new { my $class = shift; bless { @_ } => $c +lass; }' sub new { my $class = shift @_; bless {@_}, $class; } -e syntax OK
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|