[Chicago-talk] Using a hash in a regex
Kent Cowgill
kent at c2group.net
Thu Jul 13 14:53:00 PDT 2006
Jay:
Then compare apples to apples.
if( index( lc $filename, lc $hash{$key} ) ){
rename( $filename, $hash{$key}.$filename );
}
Or somesuch.
-Kent
On Thu, 13 Jul 2006, Jay Strauss wrote:
> I need to be case-Insensitive. I just perldoc'd index, but I think it's
> case sensitive
>
> Ps. That was my who introduced the red-herring of m/// even though in my
> code I had $str =~ /$sub/i;
>
>
> Jay
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
More information about the Chicago-talk
mailing list