Aside from the missing ')' on your open line, and the fact I believe you should be using || instead of the or, due to operator precedence, your code looks ok. Can you access this file by entering the UNC into explorer or a browser? If you can't access it by any other means, then you're not going to be able to do so with Perl. It seems more likely a permmissions problem then any other.