my $file = $Utl::slurp{to_scalar}->( $filename ); ## or for an array... my @file = $Utl::slurp{to_array}->( $filename );