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

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.

Replies are listed 'Best First'.
Re^9: Grep Pattern
by LanX (Saint) on Dec 15, 2018 at 01:30 UTC
    Which horrible programing practice?

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

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

        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