Stone wrote:
              if (/([0-9.]{6}) set/) {
                 s/$1 set/\n-50.2 v \n$1 set/;


You need to escape the period or it will match any character but
newline.  As it is right now you'll match ".FANTA", which isn't what
you want.

A character class is not the same as a regular expression and the period in a character class is just a period and will only match a period while in a regular expression it is a meta-character that matches any non-newline character.



John
--
use Perl;
program
fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to