Note that this involves an eval so you should be very, very careful what you feed it.my $repl = '$1 '; $repl =~ s/\"/\\"/g; $repl = qq{"$repl"}; $str =~ s/$path/$repl/eeg;
In reply to Re: $1 in variable regex replacement string
by tadman
in thread $1 in variable regex replacement string
by dvergin
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |