in reply to Re^2: User configurable regex
in thread User configurable regex
output:#!/usr/bin/perl -w use strict; my $substitution = '$line =~ '.<DATA>; my $line = "abcdef"; eval $substitution; print $line; __DATA__ s/abc(\w+)f/xxx$1x/;
Update: what I mean is; the problem you're describing only occurs in string literals (and it could already be a lot less annoying if you used single quotes). this interpolation does not occur in strings per se.xxxdex
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: User configurable regex
by MiggyMan (Sexton) on Oct 20, 2004 at 12:03 UTC |