Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using Open

by pbeckingham (Parson)
on Jul 26, 2004 at 15:25 UTC ( [id://377454]=note: print w/replies, xml ) Need Help??


in reply to using Open

This does what you intended, I think. Consider using taint because of the way you are interacting with the file system directly without untainting your inputs.

print "whats the File name ? "; chomp (my $tmp = <STDIN>); my $file = "/home/wanderi/$tmp"; open (my $info, '<', $file) or die "cant open $file"; print while <$info>;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found