> is there a difference between my @variable; Creates a new, lexically scoped array. All the elements are undef.
my @variable=(); The same, though it assigns an empty list to the array, sort of an explicit code comment "This array is empty". Note, w/o the "my" this would empty an existing array. undef @variable; undef-ines (empties) an existing array. If @variable didn't exist in the current scope, I'm betting this will give you a new, globally scoped array. That is: my @variable; undef @variable; is the same as the previous two. a ---------------------- Andy Bach Systems Mangler Internet: andy_b...@wiwb.uscourts.gov Voice: (608) 261-5738, Cell: (608) 658-1890 "The reward you get for digging holes is a bigger shovel" Granny Weatherwax _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs