in reply to Re: creating qr from existing regex
in thread creating qr from existing regex
if(index($_[0],"qr/") >= 0){ $_[0] =~s/qr[\/](.*?)([^\\])[\/](i?)$/$1$2/s; print $fh Dumper($_[0]); if($3=='i'){ $_[0] = qr/$_[0]/i; }else{ $_[0] = qr/$_[0]/; } print $fh Dumper($_[0]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: creating qr from existing regex
by poj (Abbot) on Feb 08, 2018 at 19:08 UTC | |
by Bobert1234 (Novice) on Feb 09, 2018 at 06:54 UTC | |
by AnomalousMonk (Archbishop) on Feb 09, 2018 at 14:47 UTC | |
by Your Mother (Archbishop) on Feb 09, 2018 at 18:30 UTC |