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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


New User

Apr 30, 2009, 5:42 AM

Post #1 of 2 (1082 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?


Veteran / Moderator

Apr 30, 2009, 5:55 AM

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

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


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