http://www.perlmonks.org?node_id=503029


in reply to Re^2: Ghostly subroutine variables haunting me in subsequent calls
in thread Ghostly subroutine variables haunting me in subsequent calls

You still can use alternate delimiters "in the manner of a normal regex". But you have to be explicit about the operator:
$ perl -le 'print for split m@/@, "foo/bar/baz"' foo bar baz
  • Comment on Re^3: Ghostly subroutine variables haunting me in subsequent calls
  • Download Code