so i can open with filehandle "infile" without "$"?
yes, it is a dump from hardware, but i guess you could call it plain text as it can be opened in notepad but has wild characters.
i tried many different variations of $file =~ and nothing would work out. i am fixing to read up on the link that was posted earlier.
thanks for all the help