Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Grep Pattern

by LanX (Archbishop)
on Dec 14, 2018 at 12:29 UTC ( #1227250=note: print w/replies, xml ) Need Help??


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

> And you are mistaken about the restrictiveness of my code.

Not really.

There are many occasion where you need to handle a pure list in Perl and your array slice requires storing it in an array.

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

Replies are listed 'Best First'.
Re^6: Grep Pattern
by ikegami (Pope) on Dec 14, 2018 at 17:06 UTC

    Let me rephrase: You are definitely mistaken about the restrictiveness of my code. The code I provided handles a pure list.

      Let me rephrase: hdb's code is "definitely" easier and he didn't "mess up the implementation"

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

        Not sure what game you're playing? Call it what you want, but it features horrible programming practices and it's far more complex than necessary.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2019-11-14 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (80 votes). Check out past polls.

    Notices?