Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Reading in data that is

by projekt21 (Friar)
on Oct 10, 2001 at 19:38 UTC ( [id://118014]=note: print w/replies, xml ) Need Help??


in reply to Reading in data that is

Without commenting on anything else you wrote, perldoc -f split says:

If EXPR is omitted, splits the `$_' string. If PATTERN is also omitted, splits on whitespace (after skipping any leading whitespace). Anything matching PATTERN is taken to be a delimiter separating the fields. (Note that the delimiter may be longer than one character.)

So your line will be split there:

"Jane""Doe" "123 W Beverly Ave" "Talahasee""Maine" "222-22-2222" ^ ^ ^ ^ ^ ^

And yes, those quoting signs are regular chars and will be printed. Sort them out.

alex pleiner <alex@zeitform.de>
zeitform Internet Dienste

Log In?
Username:
Password:

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

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

    No recent polls found