Re: anonymous array for loop

2013-03-10 Thread Brandon McCaig
On Sun, Mar 10, 2013 at 11:06:14AM -0400, Brandon McCaig wrote: > There is no array here. There are only lists. See perldoc > perldata. > > > List value constructors > > List values are denoted by separating individual values > > by commas (and enclosing the list in parentheses where

Re: anonymous array for loop

2013-03-10 Thread Brandon McCaig
Protip: you should stay on list for this. :) Cc'ing the list. On Sun, Mar 10, 2013 at 11:16:50AM +, John Delacour wrote: > On 09/03/2013 20:57, Brandon McCaig wrote: > >You cannot have anonymous arrays in Perl except by reference. > > What about this? > > for (split //, "abc") { > print

Re: recognize input languages

2013-03-10 Thread Shlomi Fish
Hi Ken, On Fri, 08 Mar 2013 14:19:59 +0800 Ken Peng wrote: > How can Perl recognize user's input languages? for example, if the > message is in Chinese, the character encode will be GB2312. if it's in > latin, the encode will be iso-8859-1, etc. > It's not always possible but see: https://m