> > my (%hash,@array); > > &sub_test(\%hash,[EMAIL PROTECTED]); > > & has special meaning so it should be dropped when not needing > particular special behavior.
I can't understand for this,can u give me some examples? > > my %hash=%$hash_ref; > > my @[EMAIL PROTECTED]; > > This isn't needed actually and it only makes unnecessary overhead as > keys/values are copied, so you immediately lost benefit by passing by > reference. > > It's better to access them directly like, > $hash_ref->{key} > $array_ref->[0] > > > do something... > > } This point is great,thank u. -- Jeff Pan [EMAIL PROTECTED] -- http://www.fastmail.fm - I mean, what is it about a decent email service? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>