in reply to Re: How to apply modifiers to a substitution via variable?
in thread How to apply modifiers to a substitution via variable?
Here's the output from ikegami's code above, (but with strict and warnings applied):
Global symbol "%opt" requires explicit package name at test.pl line 16 +. Global symbol "%opt" requires explicit package name at test.pl line 19 +. Execution of test.pl aborted due to compilation errors
Update: To clarify a bit ... I don't really think that skipping use strict; and use warnings; is "deplorable". But I also don't think that sometimes using eval or the /e modifier to a regular expression is, either. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to apply modifiers to a substitution via variable?
by ikegami (Patriarch) on Feb 01, 2007 at 00:53 UTC |