If I intend to write something like
s/([ab])c/$1c/;
but accidentally omit the parentheses and write
s/[ab]c/$1c/; 
I get a run time error message -- assuming
the pattern matches the input data.
But if the test data does not expose
this bug I might not find out about it until later.

Is there any way to get a "compile time" check?

I am already running with -w and strict.

Hopefully helpfully yours,
Steve
-- 
Steve Tolkin    Steve . Tolkin at FMR dot COM   617-563-0516 
Fidelity Investments   82 Devonshire St. V4D     Boston MA 02109
There is nothing so practical as a good theory.  Comments are by me, 
not Fidelity Investments, its subsidiaries or affiliates.




_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to