Commits

Shlomi Fish committed 47a30f1

Convert slurp to all.

  • Participants
  • Parent commits 329624e

Comments (0)

Files changed (1)

lib/PerlBegin/TopicsExamples/FilesAndDirs.pm

                     code => <<'EOF',
 use IO::All;
 
-my $string = io->file($my_filepath)->utf8->slurp;
+my $string = io->file($my_filepath)->utf8->all;
 EOF
 
                 },
 
 my $fh = io->file($filename);
 
-$fh->print( $text_to_prepend . $fh->slurp() );
+$fh->print( $text_to_prepend . $fh->all() );
 EOF
 
                 },