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?

Edited by thecrossibear: n/a

7 Years
Discussion Span
Last Post by thecrossibear
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.