...so there i was, degugging away, and i needed a
subroutine to dump the whole state of my application
to some files (using storable, etc)... and so i write the subroutine and fold into my code... and then my application
suddenly starts "terminating abnormally" on my new subroutine... i am totally befuddled... cannot see anything wrong with the code... how utterly mysterious!
nop
yeah, i know &dump(-file=>"foo.txt", -code=>"full", -blah=>"etc"); would have been ok with the &
...then my RTFM flash of light... perhaps dump wasn't the wisest choice for a subroutine name. duh. well, learn something new every day...### dump everything to a file sub dump { my (%params) = @_; # blah blah } dump(-file=>"foo.txt", -code=>"full", -blah=>"etc");
nop
yeah, i know &dump(-file=>"foo.txt", -code=>"full", -blah=>"etc"); would have been ok with the &
Back to
Meditations