http://www.perlmonks.org?node_id=1002713


in reply to Re^5: Parse ISO 8601 date/times (still never \d)
in thread Parse ISO 8601 date/times

The second version, which uses overloading, should work with s/// and split //.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'