If you want to split a string value to lines, try @lines = split /^/ $string;.
In reply to Re: Parsing variable by ambrus in thread Parsing variable by Sterh