Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Reading and executing Perl

by Ish (Acolyte)
on Apr 02, 2009 at 12:25 UTC ( #754926=note: print w/ replies, xml ) Need Help??


in reply to Reading and executing Perl

You can also use "do 'filename.pl'". This does (excuse me) the same kind of thing as eval can and more. Similar security concerns apply though. Update<\b> See http://perldoc.perl.org/functions/do.html for more info


Comment on Re: Reading and executing Perl
Replies are listed 'Best First'.
Re^2: Reading and executing Perl
by jethro (Monsignor) on Apr 02, 2009 at 12:51 UTC
    'do filename' won't work here because the op doesn't have a complete perl file but random text interspersed with perl code. I don't see 'do' do any filtering.
      No, quite right. Should have read it a bit more carefully so that I didn't miss the bit that said 'random text, not Perl'.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2016-02-14 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (452 votes), past polls