in reply to Modulus by zero?
Now that is interesting…
>perl -MO=Deparse -e "$a if $b %% 5 == 0" $a if $b % %5 == 0; -e syntax OK
So %5 is some sort of hash!?
From perlvarPerl variable names may also be a sequence of digits or a single punctuation or control character. These names are all reserved for special uses by Perl; for example, the all-digits names are used to hold data captured by backreferences after a regular expression match.
So the scalar variant of those digit vars are well-known, but the hash variant is "reserved" and serves no special purpose by now.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Modulus by zero?
by shmem (Chancellor) on Nov 17, 2006 at 15:11 UTC | |
Re^2: Modulus by zero?
by ikegami (Patriarch) on Nov 17, 2006 at 17:22 UTC | |
Re^2: Modulus by zero?
by orderthruchaos (Scribe) on Nov 17, 2006 at 14:11 UTC | |
by Fletch (Bishop) on Nov 17, 2006 at 14:22 UTC | |
by orderthruchaos (Scribe) on Nov 17, 2006 at 14:17 UTC |