On 12/07/2013 13:56, Shawn H Corey wrote:
On Fri, 12 Jul 2013 13:51:01 +0100
Rob Dixon <rob.di...@gmx.com> wrote:

On 12/07/2013 13:30, Agnello George wrote:

could i use local $/   instead of   $INPUT_RECORD_SEPARATOR

Yes, and you should do that. The extended variable names are almost
never used and will mostly confuse people familiar with Perl.

Except that Damian Conway of Perl Best Practice recommends:

use English   qw( -no_match_vars );  # Avoids regex performance penalty

Yes, he says that, but he says nothing about using
$INPUT_RECORD_SEPARATOR. His principle is

> use English for the less-familiar punctuation variables.

and there is a good case for claiming that $/ is a more familiar such
variable.

I, for one, would have to check `perlvar` to make sure that
$INPUT_RECORD_SEPARATOR and $/ were in fact the same thing, and most
others would as well.

What is also misleading in your code is the use of

    use charnames qw( :full :short   );

which has no effect whatsoever on the rest of the program, and so
should be ommitted.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to