in reply to Re: Parsing Login Scripts For Variable Assignment
in thread Parsing Login Scripts For Variable Assignment
Cheers - L~Rmy $path; while ( <LOGIN> ) { chomp; if ( s|\\$|| ) { $_ .= <LOGIN>; redo; } if ( /^\s*(export)?\s+PATH=(.*)/ ) { $path .= ':' if $path && substr($path, -1, 1) ne ':'; $path .= $2; } }
|
|---|