in reply to splitting a string into arbitrary lengths
You could do it with a regex as well:
This would be a good route if you had a less standard format, like optional dashes.my ($tyear, $tmon, $tday) = ($today =~ /(\d{4})(\d{2})(\d{2})/);
-- Kirby, WhitePages.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: splitting a string into arbitrary lengths
by ihb (Deacon) on Jun 23, 2005 at 20:49 UTC |
In Section
Seekers of Perl Wisdom