For one, whether you can open the file depends on what's in $bla. Second, what's that $path=s/\//\/; supposed to do? If it's meant to replace slashes with backslashes, it would at least have to be $path =~ s/\//\\/g;. But that seems inconsistent, as you're then using a slash yourself in "$path/$file"...
Also, given that you aren't really changing much in the path anyway, why not use the path $bla directly as is?
Could you describe in more detail what you're trying to achieve?
In reply to Re: Read file contents
by almut
in thread Read file contents
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |