Hi,
we can the subroutines using two ways ....
1) calling subroutine name preceeded by & symbol.
2)Another one is without &symbol....
what is the diff b/w these two....
############################
#usr/bin/perl
fun;
sub fun
{
print "hi this is from perl\n";
}
############################
the above code is doesn't worked for me......
but i changed the subroutine call like this &fun;
then it works .............plz tell me what is happenning here.
In my project script, they called the subroutines either way....in that it works..........i tried this small experiment it doesn't worked.....plz help me out.
Thanks in advace...
Sarwan.