in reply to Perl quiz for beginners

Too bad your method for determining the version of Perl doesn't work well in all environments.
[174] perl -e "print $];" Illegal variable name. [175] echo $SHELL /usr/bin/tcsh [176] bash bash-3.00$ perl -e "print $];" 5.008005

Replies are listed 'Best First'.
Re^2: Perl quiz for beginners
by Tux (Canon) on Sep 09, 2011 at 14:55 UTC

    That is because he is using Windows. On windows the quotes are ". On all other (sane) systems, the non-interpoliting quotes are ', which is what renders any quiz that involves quotation useless if it is to span Windows and any-other-OS.

    FWIW I didn't even start the quiz as it took way too long loading and when loaded (don't remember if I waited for a full load) requires cookies/scripting


Enjoy, Have FUN! H.Merijn