Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: string replacement question

by edwardt_tril (Sexton)
on Nov 30, 2005 at 07:17 UTC ( [id://512871]=note: print w/replies, xml ) Need Help??


in reply to Re: string replacement question
in thread string replacement question

Hi I ain't sure about using width because the whole line content is read from a file, so it varies.
I look up both pack/unpack and they seem to deal with ascii?
not quite sure the pack/unpack for hiascii or dbcs case? can you give an example? thankx

Replies are listed 'Best First'.
Re^3: string replacement question
by Zaxo (Archbishop) on Nov 30, 2005 at 07:28 UTC

    I was treating your data as fixed-width fields, confused by the unformatted version I guess.

    Can you usually get useful arrays out with split ',' ?. If so, follow the CSV search for lots of possibilities. The data looks like CSV now that it's laid out.

    Pack and unpack have several formats for dealing with ascii data - very useful for fixed width fields, but probably not what you need for this file.

    After Compline,
    Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found