Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: Running JavaScript from within Perlby marto (Cardinal) |
on Sep 19, 2019 at 08:53 UTC ( [id://11106365]=note: print w/replies, xml ) | Need Help?? |
As hippo mentioned, chomp. See also https://perlmaven.com/open-and-read-from-files: "In this article we see how to do this with core perl, but there are more modern and nicer ways to do this using Path::Tiny to read files." In addition to that you should consider properly indenting your code to make it easier to follow.
In Section
Seekers of Perl Wisdom
|
|