in reply to print output from the text file.
-
I want to print out the output of that polynomial through a perl script.
Open an editor and try something and if it don't work then ask. Here's some pseudocode to push you along the way: <code>
- Open the file
- Iterate through the lines
- Remove EOL character
- Parse line into tokens
- Iterate through the tokens
- Enact action based on token, passing file handle and rest of input to action sub
Each action would have it's own sub to enact the action and would be responsible for parsing input until it was satisfied it had enough.
Give it a shot.
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
|
---|
In Section
Seekers of Perl Wisdom