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>;
In reply to Re: using Open
by pbeckingham
in thread using Open
by lwanderi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |