Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Problem with pattern match

by ichimunki (Priest)
on Jul 09, 2002 at 21:56 UTC ( #180624=note: print w/ replies, xml ) Need Help??


in reply to Problem with pattern match

If you know you want the last thing on the line, use an anchor ($).

push(@last, $1) && last if /(\w+)\.bld$/; #or if you want 'three.bld' in the push: push(@last, $1) && last if /(\w+\.bld)$/;


Comment on Re: Problem with pattern match
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-07-31 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls