extract from a file based on values in another file

Hello,

I have two files that have delimited entries as shown below. I would like to use either Perl or Shell script to extract all the rows in File 1 corresponding to values in File 2 and output it to another File.

File 1
-------
1 36 24 Object1
2 45 36 Object2
3 96 21 Object3
4 89 32 Object4
5 98 23 Object5
6 99 21 Object6
7 56 21 Object7

File 2
-------
2 45 36
5 98 23
6 99 21

Thanks,
Gussi

grep -f file2 file1