this behaviour means that the untie happens almost immediately after the tie, i.e. the potential for possible ugly side effects is practically zero.My benchmarks show attributes are much slower than a (&;@) sub, especially for short lists (many thousand times).
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re^7: Declaring with my, assigning, and testing in same line (attributes)
by choroba
in thread Declaring with my, assigning, and testing in same line
by mordibity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |