$file .= '.new';
}
if ( my $f = IO::File->new("> $file") ) {
+ binmode $f;
print $f $content;
print qq/created "$file"\n/;
return 1;
=over 4
-=item default
-
-=cut
-
-sub default : Private {
- my ( $self, $c ) = @_;
-
- # Hello World
- $c->response->output('Congratulations, [% class %] is on Catalyst!');
-}
+# Uncomment, modify and add new actions to fit your needs
+#=item default
+#
+#=cut
+#
+#sub default : Private {
+# my ( $self, $c ) = @_;
+#
+# # Hello World
+# $c->response->body('[% class %] is on Catalyst!');
+#}
=back