Well, in the real world, I'd do it like so:
perl -ple 's/^/#/'Whether your instructor has other goals in mind is something else entirely...
In reply to Re: Adding '#' in the beginning of each line
by Sartak
in thread Adding '#' in the beginning of each line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |