From: christopher j bottaro <[EMAIL PROTECTED]> > hello, > i want to do something like: > $line =~ s/M (\d+) (\d+)/M $1+100 $2+200/; > obviously adding 100 to $1 and 200 to $2, not adding the text '+100' > and '+200'.
$line =~ s/M (\d+) (\d+)/'M ' . ($1+100) . ' ' . ($2+200)/e; Read perldoc perlop HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]