Hi, I have encounter a strange result couldn't figured out. # Str with format "Mon MM HH", try to skip leading space in DD. my $str = "Jan 8 11"; # Jan, 8th 11 o'clock print substr($Str, 0,3) . *substr($Str, 4,2)=~s/^\s+// *. substr($Str, 7,2) . "\n"; The result is "Jan11", I expect...
__________________
Website Development
Domain Name Forum