CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
#!/usr/bin/perl -U

 



fracken_toaster
New User

Apr 30, 2009, 5:42 AM

Post #1 of 2 (535 views)
#!/usr/bin/perl -U Can't Post

I have inherited the support of a script.

It contains the following line at the top of the script:

#!/usr/bin/perl -U

I know what #!/usr/bin/perl is for.

However, I don't know what the -U switch is for.

Does anyone know?

Thanks.


FishMonger
Veteran / Moderator

Apr 30, 2009, 5:55 AM

Post #2 of 2 (533 views)
Re: [script123] #!/usr/bin/perl -U [In reply to] Can't Post

http://perldoc.perl.org/perlrun.html

You should read the whole doc, but here's part of it.

Quote
-U

allows Perl to do unsafe operations. Currently the only "unsafe" operations are attempting to unlink directories while running as superuser, and running setuid programs with fatal taint checks turned into warnings. Note that the -w switch (or the $^W variable) must be used along with this option to actually generate the taint-check warnings.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives