in reply to Perl special variables

Do you mean "why we have used"? I fear it is up to you to know.
Or, do you mean "why we have to use"? Well, you do not have to. But it is a good practice, because without localizing $/, processing of a different file in a different part of the code can break. See also Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };.

Replies are listed 'Best First'.
Re^2: Perl special variables
by Anonymous Monk on Jun 20, 2012 at 09:12 UTC
    Thanks for providing link. I understood by reading it.

      Thanks for providing link. I understood by reading it.

      Great, maybe you can write and post the answer