in reply to Script/module formatting gotcha
I use this form quite often... my ($val) = () = something; I also use $this->{key} = my $val = 7;; it's not a bug. The assignment has a value of the rvalue. Neat!! If you understand this, I don't understand the question...
What if I wanted to do this?
Should I have to then tell critic to ## no critic that?$this->{key} = # this is an important note about the next assignment my $val = blarg();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Script/module formatting gotcha
by morgon (Priest) on Oct 06, 2010 at 14:01 UTC | |
Re^2: Script/module formatting gotcha
by mjscott2702 (Pilgrim) on Oct 06, 2010 at 13:52 UTC |
In Section
Seekers of Perl Wisdom