On Wed, Dec 07, 2011 at 10:33:32PM +0300, Denis Evdokimov wrote:
> Приветствую.
> Кто мне сможет объяснить, почему второй вариант так разительно отличается
> от первого варианта?
The null filehandle <> is special: it can be used to emulate the
behavior of sed and awk. Input from <> comes either from standard input,
or from each file listed on the command line. Here's how it works: the
first time <> is evaluated, the @ARGV array is checked, and if it is
empty, $ARGV[0] is set to "-", which when opened gives you standard
input. riable.
и далее по тексту
--
Sincerely,
Dmitry Karasik
--
Moscow.pm mailing list
[email protected] | http://moscow.pm.org