theirpuppet has asked for the wisdom of the Perl Monks concerning the following question:
without 'use strict', it works. with 'use strict', i get the following error messages:my(@array) = qw(one two three four five); duhbub(\@array); sub duhbub { local(*aref) = shift; print("$aref[1]\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reference optimization (alias/glob)
by Ovid (Cardinal) on Nov 15, 2002 at 19:53 UTC | |
|
Re: Reference optimization (alias/glob)
by RMGir (Prior) on Nov 15, 2002 at 19:50 UTC | |
by BrowserUk (Patriarch) on Nov 15, 2002 at 20:00 UTC | |
by RMGir (Prior) on Nov 15, 2002 at 20:11 UTC | |
by BrowserUk (Patriarch) on Nov 15, 2002 at 20:19 UTC | |
by theirpuppet (Sexton) on Nov 15, 2002 at 19:57 UTC | |
|
Re: Reference optimization (alias/glob)
by BrowserUk (Patriarch) on Nov 15, 2002 at 20:16 UTC | |
|
Re: Reference optimization (alias/glob)
by rir (Vicar) on Nov 15, 2002 at 19:59 UTC |