Well ... It doesn't use strict, it doesn't use warnings, it doesn't have anything to populate $line, it tries to assign a regular expression (that looks like it tries to capture two bits of whitespace seperated by more whitespace) to $line when I suspect the goal is to apply it (hint =~). You then throw a couple of variables after the line (without doing anything sensible with them), possibly (judging from the names) in some attempt to capture data from the regular expression.
It also looks like another attempt at this question which seems to have some answers on how you should go about this.
I'd rather strongly suggest starting with perldoc perlintro though.
In reply to Re: Can anyone tell me what is the error in this script
by dorward
in thread Can anyone tell me what is the error in this script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |