Name: Anonymous 2014-10-07 18:36
Why use Perl?
hard to learn and easy to forgetI believe these issues are more closely related to the programmer's memory and brain than the language itself.
study, write, study,
do review (each word) if time.
close book. sleep? what's that?
if (0)
puts("never happens");
if ("")
puts("C QUALITY");
if (0==(1==2))
puts("The integer number 0 is equal to the truth value false");
And I obviously meant character literalI see nothing about any ``character literal`` in the standard.
if ('0'-0x30)
puts("nop");
"0.0" "0E0" "00" "0x0"
"+0" "-0" " 0" "0\n"
".0" "0." "0 but true"
"\t00" "\n0e1"
> "0" ?? 1 !! 0
0 # shucks, still false in Perl 6, jerks.
> "0" but True ?? 1 !! 0
1 # what's this?
> ("0" but True) ~ "12"
012 # oh my
There are separate operators for concatenation and addition, and for numeric and string equivalence.Why couldn't the PHP/Javashit kikes do the same thing? It would make the languages at least 20% less shitty.