Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: find common data in multiple files

by afoken (Chancellor)
on Dec 31, 2017 at 11:57 UTC ( [id://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 test.pl *.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.)

Alexander

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2024-04-24 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found