Hi everyone,
Kindly go through the code below. use strict; use warnings; sub hello; my $ref = \&hello; &{$ref}; sub hello { print "hello!!"; } The output on perl 5.10 is Hello!! Whereas the output on perl 5.6.1 is Hello!!1 Why two different outputs in two different versions? >From where did "1" come from & how to remove it? Thanks in advance. Regards, Sanket Vaidya Software Engineer Patni Computer Systems Ltd. A-78/9, GIDC Electronics Estate, Sector 25, Gandhinagar - 382016 Tel: +91-79-2324 0905 Ext: 334 Mobile: +91-9824300897