in reply to Re^4: Condensing code...golfing with push and return (mixed blessing)
in thread Condensing code...golfing with push and return
use constant TRUE => 1; use constant FALSE => !TRUE;
when I'm going to need those a lot (it's sometimes helpful to be able to communicate that you mean "true value" and not "numerical one").
As for context, you are right; I guess it's a matter of habit. I'd tend to write that hash construction like
That's probably CGI.pm's legacy.. :)my %hash= ( this => scalar GetThis(), foo => 'bar', baz => 'quux', );
Makeshifts last the longest.
|
|---|