You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I've discovered that chomp has no effect on slurp! My $input is terminated with a new line, even though there isn't one in the input text file.
Am I crazy to think I should be able to do this? I'd love to be able to contribute a pull request, but am I missing a reason for not being able to do this? Thanks!
The text was updated successfully, but these errors were encountered:
I've been working on Advent of Code and ran into a bug in my program. When reading in a file into a string I've been using:
my $input = Path::Tiny::path( $input_file )->slurp_utf8( { chomp => 1 } );
But I've discovered that chomp has no effect on slurp! My $input is terminated with a new line, even though there isn't one in the input text file.
Am I crazy to think I should be able to do this? I'd love to be able to contribute a pull request, but am I missing a reason for not being able to do this? Thanks!
The text was updated successfully, but these errors were encountered: