so i need to have a script that takes input from a command and parses it for some info
im still pretty new to perl, but from what i understand, to do something like that youd have something like:

while ($line = <STDIN>)
blah blah blah

that would take the piped command in as input for the script, and i can do my stuff inside the while loop
but for some reason every time i run the script i'm getting

line 3: syntax error near unexpected token `)'
line 3: `while ($line = <STDIN>)'

what am i doing wrong?

its cause you had !# instead of #! you idiot -_-
sorry about this post