Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^10: Grep Pattern

by ikegami (Patriarch)
on Dec 15, 2018 at 15:44 UTC ( [id://1227301]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Grep Pattern
in thread Grep Pattern

Hardcoding the length of the pattern array instead of using the length of the array.

Replies are listed 'Best First'.
Re^11: Grep Pattern
by LanX (Saint) on Dec 15, 2018 at 21:03 UTC
    From Re: Grep Pattern

    > I guess you could also replace "4" with "@pat" to make it even more general.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Yes, that's exactly what should be done.

      (Not to be more general, though. To be more robust (less error-prone), more self-documenting, etc, etc.)

Log In?
Username:
Password:

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

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

    No recent polls found