[Chicago-talk] Using a hash in a regex
Jay Strauss
me at heyjay.com
Thu Jul 13 15:01:30 PDT 2006
> From: chicago-talk-bounces+me=heyjay.com at pm.org
> [mailto:chicago-talk-bounces+me=heyjay.com at pm.org] On Behalf
> Of Kent Cowgill
> Sent: Thursday, July 13, 2006 4:53 PM
> To: Chicago.pm chatter
> Subject: Re: [Chicago-talk] Using a hash in a regex
>
>
>
> Jay:
>
> Then compare apples to apples.
>
> if( index( lc $filename, lc $hash{$key} ) ){
> rename( $filename, $hash{$key}.$filename );
> }
>
> Or somesuch.
>
> -Kent
Duh... I'm officially stupid. What is the advantage of index() to
regex?
Thanks
Jay
More information about the Chicago-talk
mailing list