Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: perl grep with regex

by choroba (Canon)
on Jun 30, 2014 at 13:37 UTC ( #1091716=note: print w/ replies, xml ) Need Help??


in reply to Re^2: perl grep with regex
in thread perl grep with regex

There's probably some whitespace at the end of the lines in the file. Remove it:

s/\s+$// for @arr2;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^3: perl grep with regex
Download Code
Re^4: perl grep with regex
by swissknife (Acolyte) on Jun 30, 2014 at 14:20 UTC

    actually the space was in the beginning of line. i removed it and now it is working correctly.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-01 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (24 votes), past polls