Re: When are brackets necessary?

2012-08-05 Thread Jim Gibson
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

Re: When are brackets necessary?

2012-08-05 Thread timothy adigun
Hi Thomas, Please, check my comments below. On 8/5/12, Thomas Dean wrote: > Hi there, > > Under 'use strict;', > when can I omit the bracket and just write something like To omit the Parentheses, for the subroutine in Perl, you need to have PREDECLARED the subroutine OR you call the subroutine a

When are brackets necessary?

2012-08-05 Thread Thomas Dean
Hi there, Under 'use strict;', when can I omit the bracket and just write something like sub1; instead of sub1(); and when cannot? Thomas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/