Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Rudolf (Pilgrim)
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?
[Corion]: Discipulus: I've looked for something but never found anything good
Corion looks at the SVG. If the different regions have IDs, then you can colorize the map by providing a CSS file with the colors.
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-03-23 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.