Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: unpack format string for ignoring chars

by LanceDeeply (Chaplain)
on Feb 13, 2004 at 21:51 UTC ( #328888=note: print w/replies, xml ) Need Help??


in reply to Re: unpack format string for ignoring chars
in thread unpack format string for ignoring chars

thanks!

i just didnt know how to use x properly, got a little confused reading the doc.
i added x1 to the format string wherever i wanted to ignore a character
my $count = 0; foreach my $len (@lens) { if ( $count ++ ) { $format .= "x1"; } $format .= "A$len"; }
does the deed nicely

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://328888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-05-14 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (149 votes). Check out past polls.

    Notices?