in reply to perl 5 interpreter crashes

I think because the script is reopening itself (which is still opened because of the __END__ tag.)

You know what $0 means?

What's your goal?

update

If you really want to re-read the script, there are easier ways like reading from DATA after a seek 0

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

Replies are listed 'Best First'.
Re^2: perl 5 interpreter crashes
by pmclot (Novice) on Aug 26, 2018 at 20:45 UTC

    I do not think that is the issue. I chose $0 so that the code would be simple to read. If I replace the line that says "parser $_;" with "parser($_);" then it runs fine (Prints "Hello, world" 16 times). But I assume the interpreter should not crash...

      > I do not think that is the issue

      Do you think or did you try another variable?

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

        I should of been more clear-- If you try another string other than $0, it still core dumps.