Sec has asked for the wisdom of the Perl Monks concerning the following question:
But if I try to do that with an pre existing keyword it works fine:package CORE::GLOBAL; use subs qw(dwim); sub dwim { print "dwim\n"; } package test; dwim();
Can anybody help?package CORE::GLOBAL; use subs qw(warn); sub warn { print "dwim\n"; } package test; warn();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding Global Keyword?
by Corion (Patriarch) on Feb 17, 2006 at 15:07 UTC | |
|
Re: Adding Global Keyword?
by dragonchild (Archbishop) on Feb 17, 2006 at 15:24 UTC | |
by Sec (Monk) on Feb 17, 2006 at 15:29 UTC | |
by dragonchild (Archbishop) on Feb 17, 2006 at 15:33 UTC | |
by Anonymous Monk on Feb 18, 2006 at 11:17 UTC |