Hi All,
I am using code written by some one else. I didn't understand the difference
between these subroutines, the way they were defined.
1. sub addToLog { Some code }Any specific reason where we should
not use braces ??
2. sub displayEnv( ) { " }Any specific reason why
Anand V wrote:
I am using code written by some one else. I didn't understand the difference
between these subroutines, the way they were defined.
1. sub addToLog { Some code }Any specific reason where we should
not use braces ??
2. sub displayEnv( ) { " }Any specific reason why
On Thu, 2004-08-05 at 11:07, [EMAIL PROTECTED] wrote:
> Hi All,
Hi
> I am using code written by some one else. I didn't understand the difference
> between these subroutines, the way they were defined.
>
> 1. sub addToLog { Some code } Any specific reason where we should
> not use braces
On Aug 5, Jose Alves de Castro said:
>sub trim($), for instance, means that trim will work on a scalar.
It means that trim() expects ONE argument and will enforce scalar context
on it. trim($foo) and trim(@bar) both work.
>This is useful to, instead of something such as
>
>trim($var)
>
>use som