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

Elegant examples to parse parenthesised strings

by back-n-black (Initiate)
on May 19, 2010 at 12:04 UTC ( #840678=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my.my id 
    is-relative.to code 
    is-relative.to code 
    is-mother.to code
    
  2. or download this
    ( my.my id >= 1 )
    ( is-relative.to code = 'sister' )
    ( is-relative.to code = 'brother' )
    ( is-mother.to code = 'dog' )
    
  3. or download this
    my.my id >= 1 )
    is-relative.to code = 'sister'
    is-relative.to code = 'brother'
    is-mother.to code = 'dog'
    
  4. or download this
    $text = "05/04/2010 13:09:45 - A - somebody - ( ( my.my id >= 1 ) ) an
    +d ( ( is-relative.to code = 'sister' ) or ( is-relative.to code = 'br
    +other' ) or ( is-mother.to code = 'dog' ) )";
    
    ...
    foreach my $i (@list) {
       print "--".$i."--\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://840678]
Approved by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2018-06-21 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?