Don't ask to ask, just ask | |
PerlMonks |
Re: splitting a string into arbitrary lengthsby bmann (Priest) |
on Jun 22, 2005 at 21:40 UTC ( [id://469208]=note: print w/replies, xml ) | Need Help?? |
unpack my ($tyear, $tmon, $tday) = unpack( 'A4A2A2', '20050622' ); If you choose to use this, you might also want to read pack and perlpacktut
In Section
Seekers of Perl Wisdom
|
|