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

Re: Multiline Hash - how to get rid of formatting?

by Anonymous Monk
on Apr 30, 2012 at 07:36 UTC ( #968016=note: print w/ replies, xml ) Need Help??


in reply to Multiline Hash - how to get rid of formatting?

Now this returns me (in a mod_perl environment) formatted text. Can I get rid of this?

Are you surprised this includes white-space?

my $foo = "1. Blah 2. Blubb 3. more blah";

use Data::Dump; dd $foo; __END__ "1. Blah\n 2. Blubb\n 3. more blah"

That is how strings work :) See perlintro

And why don't the following work?

A couple of reasons, do this instead

$Workflow[$i]{Body} =~ s/^\s+//mg; # g means global


Comment on Re: Multiline Hash - how to get rid of formatting?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (18)
As of 2015-07-31 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls