MooseX::Types::OpenModeWithLayerStr - Type for mode string with PerlIO layer


NAME

MooseX::Types::OpenModeWithLayerStr - Type for mode string with PerlIO layer

Back to Top


SYNOPSIS

  package My::Class;
  use Moose;
  use MooseX::Types::OpenModeWithLayerStr;
  has file => ( isa => 'Str' );
  has mode => ( isa => 'OpenModeWithLayerStr' );
  package main;
  my $fout = My::Class->new( file => '/tmp/pwdnew', mode => '>:crlf' );

Back to Top


DESCRIPTION

This module provides Moose type which represents Perl-style canonical open mode string (i.e. "+>") with additional PerlIO layer.

Back to Top


SEE ALSO

the Moose::Util::TypeConstraints manpage, the IO::Moose manpage, perlio.

Back to Top


AUTHOR

Piotr Roszatycki <dexter@cpan.org>

Back to Top


LICENSE

Copyright (C) 2007, 2008, 2009 by Piotr Roszatycki <dexter@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

Back to Top

 MooseX::Types::OpenModeWithLayerStr - Type for mode string with PerlIO layer