You could also use PHP::Interpreter from CPAN. This allows you to embed a PHP interpreter in Perl and also, more usefully for you, to create a Perl object in PHP:
<?php
$perl = Perl::getInstance();
$fh = $perl->new("IO::File", "<$file");
while($fh->getline()) {
# ...
}
?>