Help for this page
sub myfile { my $file = shift; ... # and call it like this: my @lines = @{myfile('xml.log')};