![]() |
|
Do you know where your variables are? | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Since Perl 5.12, package has started to become more interesting. You can do stuffs like:
Although the extended syntax for package doesn't need feature or a use VERSION line to enable it, it seems like a good idea to put the use VERSION before it rather than after, so people with older Perls get an error message about their Perl being too old, instead of an error message about being unable to parse the package statement. And even in cases where I'm supporting older Perls, I keep all that stuff before package. Sometimes I'll also use modules before package if I know I'm not importing anything into my namespace from them, like:
In reply to Re^4: Strict and warnings: which comes first?
by tobyink
|
|