Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A Perl aptitude test

by vek (Prior)
on May 02, 2003 at 19:09 UTC ( #255133=note: print w/ replies, xml ) Need Help??


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 --


Comment on Re: A Perl aptitude test
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://255133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-09-22 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls