Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Elegant examples to parse parenthesised strings

by cdarke (Prior)
on May 19, 2010 at 13:06 UTC ( [id://840693]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use feature ":5.10";
    use strict;
    ...
            }
        }
    }
    
  2. or download this
      my.my id >= 1
    
      is-relative.to code = 'sister'
     or  is-relative.to code = 'brother'
     or  is-mother.to code = 'dog'
    
  3. or download this
    for my $line (@result) {
        $line =~ s/^\s+(?:or\s+)?(.*)[ ><!=]=.*/$1\n/; 
    ...
    @result = grep !/^\s+$/,@result;
    
    print @result,"\n";
    
  4. or download this
    my.my id
    is-relative.to code
    is-relative.to code
    is-mother.to code
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found