in reply to Re: comparison of two hashes
in thread comparison of two hashes

Thanks a BUNCH! This helps a lot! Just one more small help from you, i am not sure i fully understand what this portion does:
my $file1 = <<EOF; Cell: AND1 A1 A2 Y Cell: INV1 A Z EOF my $file2 = <<EOF; Cell: AND1 A B Y Cell: INV2 A Z EOF
forgive me if its a stupid question! Thanks again!

Replies are listed 'Best First'.
Re^3: comparison of two hashes
by toolic (Bishop) on Feb 03, 2010 at 14:31 UTC
    The <<EOF syntax is known as a "here-doc", which you can read about in Quote and Quote like Operators.

    I use it here to assign a multi-line string to a scalar variable. This was a convenient way for me to create a completely self-contained example which you could just copy-n-paste and run, without having to create 2 extra, external data files. Of course, in your application, you would read your 2 input files into your script.