in reply to Adding '#' in the beginning of each line

My biggest concern here is that someone was lazy enough to not only not figure out this (trivial) task on their own, but also not even to rephrase the question, but rather, paste it verbatim from their assignment. I am a university student (and a lazy one, at that) and this is an insult to our kind. For shame, anonymous monk, for shame.
  • Comment on Re: Adding '#' in the beginning of each line

Replies are listed 'Best First'.
Re^2: Adding '#' in the beginning of each line
by Anonymous Monk on Jan 24, 2010 at 23:12 UTC
    open(INFO, "$file"); @line = <INFO>; close(INFO); $" = '#'; print "#@line";