DATA trick
You can seek() back on that file to the start of your program's source code.
seek(DATA, 0, 0); # whee!
Self-aware programs.
Not self-modifying, though.
Forward to
What are references for?
Back to
DATA
Up to Stages of a Perl Programmer section
index
Up to YAPC 2000 course
index
YAPC 2000: Stages of a Perl Programmer - 23
Copyright © 2000, Nathan Torkington
All rights reserved.