|
Posted by Eric Bohlman on May 29, 2006, 10:15 pm
Please log in for more thread options
38g2000cwa.googlegroups.com:
> Im writing a perl script now and this is part of the sricpt
>
> chomp = ($pattern = ARGV[0]);
>
> for each(@thisarray)
> {
> if($_ =~ m/$pattern/i)
> {
> print ("found it here, $_");
> }
> }
No it isn't. That's not Perl. It won't compile.
Please show your actual code, not something that "looks like it."
> my question is how do you imporve it so it can accept the input that
> contains* and ?
> character(s) like *ab? a*b* *a*
perldoc -f quotemeta
|