J
John E
hello.
i'd like to take the letters in a scalar and make each of
them an element in an array.
here's what i've got so far....
#!/usr/bin/perl -w
$filename='test.pl';
$filename =~ s/.pl//;
@blah=split(/^?/,$filename);
foreach (@blah) { print $_."\n"; }
however, i also get this blunderful little warning....
Quantifier unexpected on zero-length expression before
HERE mark in regex m/^? << HERE / at ./asdf.pl line 4.
t
e
s
t
any advice on how to avoid that annoying warning (besides
just removing the w flag)?
Thanks,
~johnny
i'd like to take the letters in a scalar and make each of
them an element in an array.
here's what i've got so far....
#!/usr/bin/perl -w
$filename='test.pl';
$filename =~ s/.pl//;
@blah=split(/^?/,$filename);
foreach (@blah) { print $_."\n"; }
however, i also get this blunderful little warning....
Quantifier unexpected on zero-length expression before
HERE mark in regex m/^? << HERE / at ./asdf.pl line 4.
t
e
s
t
any advice on how to avoid that annoying warning (besides
just removing the w flag)?
Thanks,
~johnny