in reply to Re: Subroutine references inside of a hash with arguments.
in thread Subroutine references inside of a hash with arguments.
use warnings; can be simplified to just #!/usr/bin/perl -w
That's not true; the warnings pragma has lexical effects. The -w flag does not.
Strict is a compile time thing and has no impact upon code execution time.
Strict reference checking occurs at runtime.
It enforces scoping rules as one of the main things.
strict has nothing to do with scoping rules. You can use fully qualified package globals everywhere and strict will not complain.
The syntax: &sub_name is deprecated.
Discouraged, perhaps (except for tail calls) but not deprecated.
You can just say "sub_name;"
Not always -- if you have strict enabled.
#effect: literally shift off the stack passed
This is misleading. (How do you pass a stack?)
#effect: make copy from stack passed
This is doubly misleading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Subroutine references inside of a hash with arguments.
by Marshall (Canon) on Jul 25, 2009 at 09:01 UTC | |
by chromatic (Archbishop) on Jul 25, 2009 at 17:55 UTC | |
by Marshall (Canon) on Jul 27, 2009 at 18:41 UTC | |
by Anonymous Monk on Jul 25, 2009 at 09:17 UTC | |
by Marshall (Canon) on Jul 25, 2009 at 09:28 UTC |