Skip to content

Commit

Permalink
show how to combine constants
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 5, 2017
1 parent 233712e commit 1128def
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mojo/File.pm
Expand Up @@ -335,6 +335,10 @@ directory.
Open file with L<IO::File>.
# Combine "fcntl.h" constants
use Fcntl qw(O_CREAT O_EXCL O_RDWR);
my $handle = Mojo::File->new('/tmp/test.pl')->open(O_RDWR | O_CREAT | O_EXCL);
=head2 remove_tree
$path = $path->remove_tree;
Expand Down

0 comments on commit 1128def

Please sign in to comment.