splatt9990splatt9990@fosstodon.org
Sep 17, 2025, 12:53 PMso 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.