dt667 has asked for the wisdom of the Perl Monks concerning the following question:
at line 60, my expected result is produced. Again, is my logic flawed here?elsif ($_ eq '[') { $regex .= $escaping ? "\\[" : $_; } elsif ($_ eq ']') { $regex .= $escaping ? "\\]" : $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Glob to Regex issue
by SuicideJunkie (Vicar) on Nov 18, 2015 at 15:16 UTC |