You will find that the declaration is utterly useless.
The reason is that all of the magic of strict is buried in what the import method of strict does to the parsing of your code at compile time. A simple require loads strict too late (ie at runtime) and does not call the import method.
See Re (tilly) 1: How does strict work? for a longer explanation of how exactly strict works.
Oh, and let this be a lesson. As one Alexander Pope said:
A little learning is a dangerous thing;But as Aldous Huxley observed:
Drink deep, or taste not the Pierian spring:
There shallow draughts intoxicate the brain,
And drinking largely sobers us again.
If a little knowledge is dangerous, where is the man who has so much as to be out of danger?Certainly I don't! Which is why before I told you that what you were doing was useless I ran the following test of knowledge I imagine I have:
And only armed with this verification did I write this post...perl -e 'require strict; print $foo = "Hello\n"'
In reply to Re (tilly) 1: Silly Roommate Tricks
by tilly
in thread Silly Roommate Tricks
by wombat
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |