Ok, so I'm maintaining some quirky old (2000-2010) perl code not written by me and I see a large number of list initializations of the form:
Now as far as I know this is a pointless variation on@foobar = splice(@foobar,@foobar)
Can any wise one think of _any_ reason why I shouldn't just replace all these weird splices with the literal empty list?@foobar = ( )
In reply to Unusual (and pointless?) idiom in old code by ajmalton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |