Login
You're viewing the techdon.dev public feed.
  • Sep 17, 2025, 12:53 PM

    @phl @traecer

    so m/PATTERN/ doesn't actually do matching, it's just a short hand that expands (in certain contexts) to $_ =~ m/PATTERN/. The =~ part does the actual regex matching. m/PATTERN/ is just a regex value, thus you are actually passing a value to split which does the matching itself rather than the results of a function call.

    Also while you can pass a string to split, it just gets interpreted as a regex anyway.

    💬 0🔄 0⭐ 0