Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: Making a variable in a sub retain its value between calls

by ihb (Deacon)
on Apr 18, 2005 at 23:41 UTC ( [id://449061] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    BEGIN {
      my $memory = 'a';
        print "Value of static var is ", $memory++, "\n";