in reply to Re^5: Split file, first 30 lines only
in thread Split file, first 30 lines only

Thank you huck, I'll not bother you any more. Appreciate your help and patience. Rick

Replies are listed 'Best First'.
Re^7: Split file, first 30 lines only
by huck (Prior) on Feb 27, 2017 at 23:35 UTC

    it wasnt you i was harping about, its the nit-pickers

    This now bothers me qr/\'\n'/, the quotes in there, your lines may begin and end with a single quote you dont want. if so add

    $line=~s/^\'//; $line=~s/\'$//;
    after the "chomp" line;

    i think im just getting old, this stuff just stands out after i hit create.... but not before

      Thanks again huck, appreciate your effort here!! Rick