Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: Cropping the output of the pattern matcher

by hopes (Friar)
on Sep 24, 2001 at 05:14 UTC ( [id://114230] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line = "a whole lotta shakin >pattern here< goin on";
    
  2. or download this
    my @bits_and_pieces = split /></, $line;
    
  3. or download this
    'a whole lotta shakin >pattern here< goin on'
    
  4. or download this
    my $line = "a whole lotta shakin ><pattern here>< goin on"; 
    my @bits_and_pieces = split /></, $line;
    
  5. or download this
    ('a whole lotta shakin ','pattern here',' goin on')
    
  6. or download this
    print @bits_and_pieces;
    
  7. or download this
    'a whole lotta shakin pattern here goin on'