I built a simple subroutine, and I have a question about whether calling it requires parentheses.
#!/usr/bin/perl
sub echo {
print "@_ \n" ;
}
echo(@ARGV);
When I use
echo @ARGV
or
echo (@ARGV)
or (without a space)
echo(@ARGV)
they all work. Which one is correct?