[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Self Aware Data routines?



Steve Lane writes:
|while (<DATA>) {
|  chomp;
|  no strict qw/refs/;  # the next line is a symref
|  &$_;
|}
|sub AUTOLOAD { 
|  print "Sorry, I don't see a subroutine called '$AUTOLOAD'\n"; 
|}

And hope that __DATA__ doesn't contain the name of some unrelated sub
in main...

Brian

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org