JupiterHost.Net [JN], on Wednesday, April 27, 2005 at 10:23 (-0500)
thinks about:

JN> No its not, you can if you want but it pointless:

I read it somewhere (it was perl cookbook/learning perl from o'reilly
maybe). Always declare

my @a = ( );

And here is why, if I remember correctly - if you declare
my @a; you should think you declare empty array. After that, in script
you should use @a; which do nothing. So my @a = ( ); is good practise
I think. It is the same for hashes.

 >> $|++;, and I use $| = 1;
JN> That two ways to assign 1 to $|, its not similar to the array thing at all.

I meant good practise in scripts. What about when somewhere in script
will be $| = -1; pr $|-- ?
$| = 1 will work always.

-- 

 ...m8s, cu l8r, Brano.

[WYTYSYDG        What You Thought You Saw, You Didn't Get]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to