[oak perl] Can't modify map iterator in scalar assignment?

Kester Allen kester at gmail.com
Thu Dec 9 12:07:17 CST 2004


> > $p = { 1, 3, 4 };
> 
> No, please don't do this. It's misleading to the next programmer;
> it makes $p look like a hashref, not an arrayref.


Oop, you're absolutely right.  That should've been "$p = [ 1, 3, 4
];".  I've been doing too much C++ lately :)


More information about the Oakland mailing list