in reply to Parsing Text from Object Header that prints to STDOUT

If that align() method doesn't have some hook to just get the string back, you could use a pipe, like so:
./the_script_you_posted | perl -lne 'print $1 if /^SCORE\s+(\S+)/'

Replies are listed 'Best First'.
Re^2: Parsing Text from Object Header that prints to STDOUT
by monkfan (Curate) on Apr 20, 2005 at 17:09 UTC
    Thanks for your reply.
    But:
    1. AFAIK align() method doesn't have the hook to get string
    2. I need a variable for "score" inside the code, so I can use it for other purpose.

    Regards,
    Edward