Weekly Perl Script [Issue 7]
j proctor
jproctor at oit.umass.edu
Fri Jul 23 10:47:00 CDT 1999
On the Jax.PM jacksonville-pm-list;
j proctor <jproctor at oit.umass.edu> wrote -
> This line:
> if (index("abcdefghijklmnopqrstuvwxyz",
>
> should say:
> unless (index("abcdefghijklmnopqrstuvwxyz",
>
>
> And what was funny is that It only prints the Capital letters :(
> (I do not remember what I was thinking at the time, and must have
> really changed my mind before posting...)
Ooh! Ooh! I know that one, too! :)
print split(/[a-z]+/, $_);
...although I'd still use tr/a-z//d instead.
j
The Jacksonville Perl Monger's Group is operated by -
Bill -Sneex- Jones ( sneex at usa.net ),
to whom send all praises, complaints, or comments...
More information about the Jacksonville-pm
mailing list