BEGIN and -ew

Rafael Garcia-Suarez rgarciasuarez at gmail.com
Thu Aug 10 15:51:36 BST 2006


On 10/08/06, Earle Martin <perl at downlode.org> wrote:
> earle at buick:~$ perl -ew 'use strict; my $foo; BEGIN { $foo = 1; }; print
> "$foo\n"'

You're executing a single character program here, "w". (with a long
argument in @ARGV, that happens to look like perl code)

use -we instead of -ew.


More information about the london.pm mailing list