Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Sort list by position of items in another listby choroba (Cardinal) |
on Feb 18, 2022 at 17:30 UTC ( [id://11141473]=note: print w/replies, xml ) | Need Help?? |
Interestingly, the Python code fails if w1 contains characters outside of PCHR. Therefore, using only valid characters the following should work:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|