Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
this one works for me,(@first,@second)=unpack("A12A12A24A10",$string); __DATA__ the second array seems empty.
Is there any other efficient or precise solution to do that?.@first=unpack("A12A12A24A10",$_); @second=splice(@first,24); __DATA__ this one worked fine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help needed in storing the return values of unpack
by BrowserUk (Patriarch) on Mar 23, 2006 at 10:42 UTC | |
|
Re: help needed in storing the return values of unpack
by timos (Beadle) on Mar 23, 2006 at 09:14 UTC | |
by Anonymous Monk on Mar 23, 2006 at 09:34 UTC | |
by GrandFather (Saint) on Mar 23, 2006 at 09:40 UTC | |
by Corion (Patriarch) on Mar 23, 2006 at 09:39 UTC | |
by Anonymous Monk on Mar 23, 2006 at 09:45 UTC | |
by Corion (Patriarch) on Mar 23, 2006 at 09:49 UTC | |
|
Re: help needed in storing the return values of unpack
by GrandFather (Saint) on Mar 23, 2006 at 09:11 UTC | |
|
Re: help needed in storing the return values of unpack
by Anonymous Monk on Mar 23, 2006 at 09:46 UTC |