Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^9: Experimental features: autoderef vs postfix derefby golux (Chaplain) |
on Jul 14, 2015 at 18:01 UTC ( [id://1134770]=note: print w/replies, xml ) | Need Help?? |
RonW,
I also have a C background, and agree about "state" variables being the Perl equivalent of C "static" variables. Using "state" simplifies cases like the following where one shouldn't have to remember to print an HTML header, but also doesn't want it more than once:
Output:
In Section
Seekers of Perl Wisdom
|
|