Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Taint switch and File::Find

by jonnyfolk (Vicar)
on Jun 05, 2006 at 02:51 UTC ( #553518=perlquestion: print w/ replies, xml ) Need Help??
jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:

#!/usr/bin/perl -w -T use strict; use File::Find; print "Content-type: text/html\n\n"; find( \&print_options, "."); sub print_options { foreach ($_ ) { print "$_\n"; } }

This prints out the files I need but also comes up with the following Software error:

Insecure dependency in chdir while running with -T switch at /usr/loca +l/lib/perl5/5.8.2/File/Find.pm line 723.

If I don't want to delete the -T switch, how do I get round this error?

Thanks

Comment on Taint switch and File::Find
Select or Download Code
Re: Taint switch and File::Find
by Zaxo (Archbishop) on Jun 05, 2006 at 03:18 UTC

    See the File::Find options untaint, untaint_pattern and untaint_skip. The description in perldoc explains all.

    After Compline,
    Zaxo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-07-06 14:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls