Hi, i'm struggling with a stupid issue. I'm trying to split a chunk of text in a scalar $text into a list of lines @lines (obviously splitting on the newline char). Having trouble telling split howto do it, I would have thought:
my @lines = split(/\n/, $text);
would do the trick but its splitting on whitespace?!? Hmm, how to do this?
Thanks!