|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re^4: Is there a more functional regex syntax?by tobyink (Prior) |
| on Sep 18, 2012 at 19:18 UTC ( #994336=note: print w/ replies, xml ) | Need Help?? |
|
Some parts of List::Util are a little ill-conceived. For example, the existence of separate min and minstr functions (and max/maxstr). Perl gets by with a single sort function that can take an optional block. Obviously there is a limit to what can be done with prototypes, but if List::Util were to be adopted into the Perl language itself, I'd hope that would be addressed. But certainly, the functions in List::Util would be a lot more useful in core than getgrent, setnetent and getgrgid. I'd also add uniq from List::MoreUtils and about half of Scalar::Util.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||