Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^5: find common data in multiple files

by afoken (Abbot)
on Dec 31, 2017 at 11:57 UTC ( #1206476=note: print w/replies, xml ) Need Help??

in reply to Re^4: find common data in multiple files
in thread find common data in multiple files

I tried this code using it as follow:

$ perl *.txt

And it is giving output:

$VAR1 = [];

Are you running the script in the directory containing the *.txt files?

What operating system are you using? If you are on Windows, there are some minor differences to Unix that prevent *.txt from being expanded to a list of files. In that case, add the following line to the perl script, right after "use warnings;":

use Win32::Autoglob;

(See Re^3: Perl Rename for details why this is needed.)


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206476]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-03-19 00:10 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.