how to change time hr:mm to mm:hr in perl

Hi

I want to match time hr:mm and change to mm:hr
please let me know how to do that in perl

Do you wish to validate it as well ?

tyler_durden

Hello ,
what do you exactly mean by "match" ?
Try this,

perl -wln -e '@_=split(/:/);print $_[1].":".$_[0];'