in reply to A Perl aptitude test
The output you receive when running the code in question 1 depends on whether you have warnings turned on. Did any candidate mention that, was that part of the answer you were looking for? I'm just curious :-)
-- vek --
Results in:#!/usr/bin/perl -w print (2 * 3) + 3;
Remove warnings and you just get 6print (...) interpreted as function at foo.pl line 3 Usless use of integer addition (+) in void context at foo.pl line3. 6
-- vek --
|
---|
In Section
Meditations