in reply to perl -e hash assignment and range operator bug

Windows uses % as its environment variable token. You must double it to get a single one.

The code %a = (1,2,3,4); print %a is reduced to a because the commandline sees a = (1,2,3,4); print as the name of an environment variable.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
(crazyinsomniac)Re^2: perl -e hash assignment and range operator bug
by crazyinsomniac (Prior) on Aug 26, 2001 at 20:40 UTC
      No, the problem is you're using Windows.

      _____________________________________________________
      Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
      s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;