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>;
|
|---|