in reply to Re^3: Filtering Output from two files
in thread Filtering Output from two files

Sorry would indentation next time onwards. Basic what's happening is the big files have whitespace before and after each entry So I have to remove those while I store them to a key .

Replies are listed 'Best First'.
Re^5: Filtering Output from two files (updated)
by LanX (Saint) on Feb 06, 2018 at 12:39 UTC
    > So I have to remove those while I store them to a key

    OK ... what is hindering you? :)

    update

    you are already using a regex to match empty lines, time to understand what they do

    perlre#Metacharacters

    ^ Match the beginning of the string Not in [] (or line, if /m is used) ... $ Match the end of the string Not in [], but can ... * Matches the preceding element 0 or more Not in [] times

    update

    and look again into marshall's code ;-)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery