Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Running JavaScript from within Perl

by marto (Archbishop)
on Sep 19, 2019 at 08:53 UTC ( #11106365=note: print w/replies, xml ) Need Help??


in reply to Re^3: Running JavaScript from within Perl
in thread Running JavaScript from within Perl

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.

  • Comment on Re^4: Running JavaScript from within Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2019-10-21 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?