If you can guarantee the year is never going to start with a 0 (ie, 2001 vs 01), then ...
$date =~ s/\b0//g;
Originally posted as a Categorized Answer.
In reply to Re: How do I drop leading zeros from a date like 07/04/2001 to read 7/4/2001??
by Kanji
in thread How do I drop leading zeros from a date like 07/04/2001 to read 7/4/2001??
by gtmeyer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |