in reply to Re^3: A bizarre way to get a list of filenames
in thread A bizarre way to get a list of filenames

sometimes people try to overload <> for their own iterator use

You mean like me? But I didn't fail, at least I don't think so ;-)

  • Comment on Re^4: A bizarre way to get a list of filenames

Replies are listed 'Best First'.
Re^5: A bizarre way to get a list of filenames
by LanX (Saint) on Aug 05, 2019 at 15:47 UTC
    > You mean like me?

    nope!

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

    update

    maybe "like" you, but I didn't mean "you"!

      update
      maybe "like" you, but I didn't mean "you"!

      No worries, I wasn't being serious, hence the ;-)

      (But if there do happen to be issues with the code I posted, I'd like to know, since I've used <> overloading a few times now...)

        > (But if there do happen to be issues with the code I posted, I'd like to know, since I've used <> overloading a few times now...)

        Nope, no issues with $objects. IIRC I tried calling a function which returns an object ... and bang. The other issue is that the parser sometimes sees the less operator as a broken diamond.