In following code output thrown is hello1. Why does it print 1 alongwith the output hello???
#! usr/bin/perl -w sub foo { print "hello"; #return "Neha"; } print foo; print "\n";
In reply to print subroutine name calls subroutine but with appended 1 number to the output by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |