in reply to Parsing Login Scripts For Variable Assignment
But, as jasonk, holo and Corion have noted, this isn't the biggest problem.LINE: while (<LOGIN>) { chomp; if (s!\\$!!) { $_ .= <LOGIN>; redo LINE; } # At this point, we have gathered all the continuation lines into +1 line. # Now do the rest of the processing. next unless /PATH/; # here you have your PATH line, and can do whatever you need with +it. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing Login Scripts For Variable Assignment
by Limbic~Region (Chancellor) on Dec 09, 2003 at 15:02 UTC |