http://www.perlmonks.org?node_id=255133


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 :-)
#!/usr/bin/perl -w print (2 * 3) + 3;
Results in:
print (...) interpreted as function at foo.pl line 3 Usless use of integer addition (+) in void context at foo.pl line3. 6
Remove warnings and you just get 6

-- vek --