in reply to Re^3: Subroutine references inside of a hash with arguments.
in thread Subroutine references inside of a hash with arguments.
I don't think that there are any at all.
See warnings.
Strict is a compile time thing - not run time.
The strict documentation disagrees:
"strict refs" ... generates a runtime error if you use symbolic references (see perlref).
Scoping like "my vars" is a big part of what "use strict" enforces....
As I wrote in my previous message, you can avoid lexical variables altogether (and avoid lexical scoping altogether) and satisfy strict. Did you try it? You can also declare all of your lexical variables at package-level scope and satisfy strict. strict has nothing to do with scoping (except that strict's area of effect is lexical).
... in general when you call a sub, you push things onto a stack and the sub consumes them by shifting them off the stack, just like with any other main programming language....
I can think of multiple machines -- virtual and otherwise -- where that's not true.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Subroutine references inside of a hash with arguments.
by Marshall (Canon) on Jul 27, 2009 at 18:41 UTC |