Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This is how you read a file in Perl?

Nope. I use Path::Class from CPAN...

  use Path::Class 'file';
  my $file_text = file('data.txt')->slurp;


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: