Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print subroutine name calls subroutine but with appended 1 number to the output
by roboticus (Chancellor) on May 01, 2012 at 18:25 UTC | |
|
Re: print subroutine name calls subroutine but with appended 1 number to the output
by jwkrahn (Abbot) on May 01, 2012 at 18:27 UTC | |
|
Re: print subroutine name calls subroutine but with appended 1 number to the output
by 2teez (Vicar) on May 01, 2012 at 19:44 UTC | |
by Anonymous Monk on May 02, 2012 at 05:32 UTC |