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 |