in reply to
two + 2 not equal 4!
To make the print statement work as you wrote, change the sub as given below,
perl -e 'sub two { $_[0] + 2 };print two + 2'
[download]
output:
4
~suhail
Comment on
Re: two + 2 not equal 4!
Download
Code
In Section
Seekers of Perl Wisdom