in reply to regular expressions query

my ($meanH1, $meanH2) = split /\s+/

check out perldoc -f split

HTH

Sweetblood

Replies are listed 'Best First'.
Re^2: regular expressions query
by Enlil (Parson) on Jun 30, 2004 at 18:05 UTC
    This will not get rid of the leading whitespace on those lines (it returns a null field as the first field). But if you use ' ' instead it should work fine. That is:
    my ($meanH1,$meanH2) = split ' ';
    as per the documentation:

    A split on /\s+/ is like a split(' ') except that any leading whitespace produces a null first field.

    -enlil