Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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 studying the Monastery: (4)
As of 2018-06-24 00:04 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.