NAME IO::Barf - Barfing content to output file. SYNOPSIS use IO::Barf qw(barf); barf($file, 'CONTENT'); SUBROUTINES "barf($file, $content)" Barf content to file. ERRORS barf(): Cannot open file '%s'. Cannot close file '%s'. EXAMPLE # Pragmas. use strict; use warnings; # Module. use File::Temp qw(tempfile); use IO::Barf; # Content. my $content = "foo\nbar\n"; # Temporary file. my $temp_file = File::Temp->new->filename; # Barf out. barf($temp_file, $content); # Print tempory file. system("cat $temp_file"); # Unlink temporary file. unlink $temp_file; # Output: # foo # bar DEPENDENCIES Error::Pure, Exporter, Readonly. SEE ALSO IO::Any, File::Slurp, Perl6::Slurp. REPOSITORY AUTHOR Michal Špaček LICENSE AND COPYRIGHT BSD license. VERSION 0.02