Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Filtering Output from two files

by vighneshmufc (Acolyte)
on Feb 06, 2018 at 12:25 UTC ( [id://1208560]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1208560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-23 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found