On Aug 5, 2012, at 9:28 AM, Thomas Dean wrote:

> Hi there,
> 
> Under 'use strict;',
> when can I omit the bracket and just write something like
>       sub1;
> instead of 
>       sub1();
> and when cannot?

The best advice I can give you is "always include the parentheses". Thats what 
I do, at least for my own subroutines. 

There are lots of things that can go wrong in programming, and risking possible 
errors or misinterpretations by the compiler doesn't seem worth saving the 
typing of two characters when you are not sure of the result.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to