Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: unpack format string for ignoring chars

by LanceDeeply (Chaplain)
on Feb 13, 2004 at 21:51 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://328888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found