Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: How to extract a pattern in Perl regex?

by marto (Cardinal)
on May 02, 2020 at 09:26 UTC ( [id://11116345]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to extract a pattern in Perl regex?
in thread How to extract a pattern in Perl regex?

ojo is very nice, but I find myself more often writing programs that just aren't practical as one liners

  • Comment on Re^5: How to extract a pattern in Perl regex?

Replies are listed 'Best First'.
Re^6: How to extract a pattern in Perl regex?
by haukex (Archbishop) on May 02, 2020 at 09:31 UTC
    I find myself more often writing programs that just aren't practical as one liners

    Same here. My reaction was inspired by this: 'However part of my question was how do I extract in one statement what's in between the "title tags". ... Surely there's a simpler way?' I think one of the things that turns people off from using modules instead of plain regexes is because modules often require a lot of boilerplate, which luckily Mojolicious for the most part does not.

      Indeed, I took that to mean do it within one line of code, rather than as a command line one liner.

        I took that to mean do it within one line of code, rather than as a command line one liner.

        Me too, but my thinking was that one-liners are the ultimate way of saying "look at how little code I need" ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found