Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: How to remove white space and more than a particular number of new lines!

by graff (Chancellor)
on Apr 14, 2014 at 02:24 UTC ( #1082180=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to remove white space and more than a particular number of new lines!
in thread How to remove white space and more than a particular number of new lines!

You were shown two alternatives. Which one did you use? (Hint: You must copy/paste directly from the shell window where you ran the command.) What actual output did you get? (Again, use copy/paste.)

BTW, it's not really clear that the "desired output" is consistent with the OP description of what you're trying to do. Please be more explicit in the explanation, or more careful about presenting the "desired output".

Also, it looks like your input contains some non-ASCII characters. Do you know what sort of character encoding is being used? If it's UTF-8, you'll want to add '-C31' as the first command-line option on the perl command line that mr_mischief gave you (i.e. perl -C31 -e (but if it's something other than UTF-8, you'll want to handle encoding conversion).


Comment on Re^3: How to remove white space and more than a particular number of new lines!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-11-28 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls