Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to print bunch of data in a file without breaking in to new line

by Rudolf (Monk)
on Jul 31, 2012 at 16:49 UTC ( #984624=note: print w/ replies, xml ) Need Help??


in reply to How to print bunch of data in a file without breaking in to new line

You say you have stored the entire file into one variable, but perhaps your generalizing? Can you show how you stored it? for example: did you store it in a scalar ($var) or list (@var), and how did you print it to the file? perhaps when you took the html from whatever source, it contained newlines, to be sure there are none you can use

 chomp()

in a loop to write to this new file


Comment on Re: How to print bunch of data in a file without breaking in to new line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-12-27 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls