in reply to using split on a string

Sure. Your problems are that: After these fixes, your code should look something like:
my ($extension) = $pubload =~ /\.(\w+)$/;
update: as chromatic pointed out, the /g modifier on my regex was unnecessary, so I nixed it.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Re: using split on a string
by newatperl (Acolyte) on May 14, 2001 at 07:36 UTC
    Thanks MeowChow, your line worked like a charm. Now I'm just trying to dechiper everything you did. Thanks again!