Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: multi line matching problem

by SquireJames (Monk)
on Dec 16, 2003 at 02:18 UTC ( [id://314950] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data =~ y/\n/ /; # This will remove all newlines and replace them wit
    +h spaces
    
  2. or download this
    $data =~ s/\s+|\n/ /g;