in reply to Re^5: Access a global variable from a subroutine when used as "for" iterator
in thread Access a global variable from a subroutine when used as "for" iterator

Choroba's Unwritten Rules of Good Example Code ™.

But I have a feeling we discussed not using trivial sequences in examples with haukex years ago. I can't find the posts now.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^6: Access a global variable from a subroutine when used as "for" iterator
  • Download Code

Replies are listed 'Best First'.
Re^7: Access a global variable from a subroutine when used as "for" iterator
by LanX (Saint) on Dec 23, 2023 at 02:02 UTC
    While I agree with your rules...

    > Choroba's Unwritten Rules of Good Example Code ™.

    I expected a more authoritative source, like a burning Xmas tree talking to you, or encountering an old bearded woman on a mountain tip, bestowing you with a T-shirt with those ten golden rules written on it.

    > But I have a feeling we discussed not using trivial sequences in examples with haukex years ago

    Or something like that! ;)

    Tell me if you find the other 8 commandments.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery