|
|
Choosing A Webhost: |
Re: Is this the correct behaviour: msg#00144lang.perl.perl6.compiler
Kiran Kumar writes: > Hi , > Is this behaviour correct when i print $_ ? .. > > > #!/usr/bin/pugs > use v6; > > for (0 .. 8) -> $tmp > { > say " tmp is $tmp Spcl is $_ \n"; > } > > tmp is 0 Spcl is 1 > > tmp is 2 Spcl is 3 > > tmp is 4 Spcl is 5 > > tmp is 6 Spcl is 7 > > tmp is 8 Spcl is Nope. It seems that pugs is considering $tmp and the implicit usage of $_ to specify two different parameters to the block. In fact, there's only one: $tmp, and it is aliased to $_. Luke
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Is this the correct behaviour, Kiran Kumar |
|---|---|
| Next by Date: | unexpected semicolon parsing errors (pugs), Carl Franks |
| Previous by Thread: | Is this the correct behaviour, Kiran Kumar |
| Next by Thread: | Re: Is this the correct behaviour, Aaron Sherman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |