#!/usr/local/bin/perl -w use strict; my $olddate = "20020911"; my $newdate; map { /([\d]{4})([\d]{2})([\d]{2})/; $newdate= "$1-$2-$3"; } $olddate; print $newdate."\n";
In reply to Re: splitting an array element
by Chief of Chaos
in thread splitting an array element
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |