In the interest of feedback:

I voted you down because you didn't use "warnings" or "strict".

You have been here for half a month and you haven't picked this up, yet.

While "warnings" and "strict" are not necessary, they are good common practice by a perl programmer. They make bug fixing easier, and they save time.

Look at Some things that will make your life easier as a Perl coder.

J. J. Horner
Linux, Perl, Apache, Stronghold, Unix

In reply to (jjhorner)problem with print content of file by jjhorner
in thread problem with print content of file by vrempire

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":