klassisc has asked for the wisdom of the Perl Monks concerning the following question:
Now this returns me (in a mod_perl environment) formatted text. Can I get rid of this? A workaround would probably be to use the following with \n, I don't want to use this...my @Workflow = ( {Body => "1. Blah 2. Blubb 3. more blah", },[...]
Anyway is there a kind of flag which supresses the formatting in the first case? And why don't the following work? I tried to get rid of the spaces afterwards...my @Workflow = ( {Body => "1. Blah\n" . "2. Blubb\n" . "3. more blah", },[...]
It's strange. The last one returns, in a 4 line value, the first 2 lines cleaned up from leading spaces, 3rd and 4th line untouched. TIA Michael$Workflow[$i]{Body} =~ s/^\s+//m; $Workflow[$i]{Body} =~ s/\s{2,}//; $Workflow[$i]{Body} =~ s/ {2,}//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiline Hash - how to get rid of formatting?
by Anonymous Monk on Apr 30, 2012 at 07:36 UTC | |
|
Re: Multiline Hash - how to get rid of formatting?
by tospo (Hermit) on Apr 30, 2012 at 07:49 UTC | |
by Anonymous Monk on Apr 30, 2012 at 08:37 UTC | |
by tospo (Hermit) on Apr 30, 2012 at 09:26 UTC | |
|
Re: Multiline Hash - how to get rid of formatting?
by tobyink (Canon) on Apr 30, 2012 at 07:34 UTC | |
by tobyink (Canon) on Apr 30, 2012 at 10:18 UTC | |
by tospo (Hermit) on Apr 30, 2012 at 08:31 UTC |