RE: $_ in hash datatype?

2002-01-19 Thread Bob Showalter
> -Original Message- > From: yun yun [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 19, 2002 10:08 AM > To: [EMAIL PROTECTED] > Subject: $_ in hash datatype? > > > if var is a hash type, i.e. %var, > then what's the meaning of $_, and $var{$_}?

Re: $_ in hash datatype?

2002-01-19 Thread Jonathan E. Paton
> If var is a hash type, i.e. %var, then what is > the meaning of $_, and $var{$_}? __DESCRIPTION__ $_ is the default variable, used when you are too lazy to create one of your own and like clean looking code. __EXAMPLE__ foreach (1..5) { print "$_\n"; } Is the same as: foreach $_ (1..5) {

$_ in hash datatype?

2002-01-19 Thread yun yun
if var is a hash type, i.e. %var, then what's the meaning of $_, and $var{$_}? Thanks! _ Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡¡ª¡ª ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomli