my @copy = <$input>; my $entity = $parser->parse_data( @copy );