Jim Trocki on 22 Dec 2004 04:10:51 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: regex/printf question


On Tue, 21 Dec 2004, Stephen Gran wrote:

my $tmp_msg = $string_with_markers
$tmp_msg =~ s/\%COUNT-foo\%/%8, $count/

use the "e" modifier:

$tmp_msg =~ s/\%COUNT-foo\%/printf '%8d', $count/e;

-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**