[EMAIL PROTECTED] wrote:
I am just playing with variable assign. I always initialize my arrays first as I need them.
Then of your two examples this makes the most sense;
my(@array,@array1);
but if you are simply doing:
my( @array, @array1 );
@array = foo(); @array1 = bar();
then it'd be much better to just do
my @array = foo(); my @array1 = bar();
unless you have a good reason that you can explain to my() them before you assign data to them, maybe something like this:
sub foobarize_list_into_arrayref { my @array; for(@_) { push @array, foobarize_string($_); } return [EMAIL PROTECTED]; }
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>