Perl != C++: please use # as comment introducer. // is the defined-or operator and very confusing in questions that deal with regular expressions.
I'd advice to never ever use // comment style anywhere at all. ever. It is allowed in C99, and in that not even every C-compiler that claims to be C99 will accept it. It will break every C89 compiler (maybe not all gcc versions, but still). // outside of C++ should die.
In reply to Re: problem with perl 5
by Tux
in thread problem with regex in perl script intended for 5.20,but while running on 5.10
by praveenchappa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |