in reply to Re: Why does this code think I'm trying to use symbolic references?
in thread Why does this code think I'm trying to use symbolic references?

I understand it is strange to hit whitespace issues in Perl (where weirdness like my$   n = 1 is legal) but this seems sensible and, this part, not hairy; I'd be alarmed if it worked any differently. Only the print(list) and file handle stuff is surprising and Perl users learn those issues, I hope, pretty early. +4 looks, like -4, unambiguously signed. Maybe the negative reads more clearly since we're used to never seeing the positive.

print $n -4;

Replies are listed 'Best First'.
Re^3: Why does this code think I'm trying to use symbolic references?
by shmem (Chancellor) on Jun 14, 2016 at 15:36 UTC
    I understand it is strange to hit whitespace issues in Perl (where weirdness like my$   n = 1 is legal) but this seems sensible and, this part, not hairy; I'd be alarmed if it worked any differently.

    Yes, yes and yes; and yes. My statement is ambiguous, too: not the implemented behaviour (which is fine) is hairy, instead I qualify the edge case itself as such. And it shows - again - how well kept and thought out/through perl is. p5p are doing an awesome job.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'