Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PerlIO::Util::JA(3)   User Contributed Perl Documentation  PerlIO::Util::JA(3)

NAME
       PerlIO::Util::JA	- PerlIOa<<ecaaae+-c"a|a1/4aaLaaaaLe

VERSION
       This document describes PerlIO::Util version 0.72

SYNOPSIS
	   use PerlIO::Util;

	   # utility layers

	   open	$in, '+<:flock', $file;	# with flock(IN, LOCK_EX)

	   open	$in, '+<:creat :excl', $file; #	with O_CREAT | O_EXCL

	   open	$out, '>:tee', $file, \$scalar,	\*STDERR;
	   print $out "foo"; # print to	$file, $scalar and *STDERR

	   # utility routines

	   $in = PerlIO::Util->open('<', $file); # it dies on fail

	   *STDOUT->push_layer(scalar => \$scalar); # it dies on fail
	   print "foo";

	   print *STDOUT->pop_layer(); # => scalar
	   print $scalar; # => foo

DESCRIPTION	      _
       "PerlIO::Util"a PerlIOa<<ecaaa|a1/4aaLaaaaLa~axaxa"a|a1/4aaLaaaaLa!a1/2aaa
       aea3/4aaaca,aYa1/4a<<a<section>aaa
			    _
       a|a1/4aaLaaaaLa~axaxa "Pe_lIO::Util"a_R)a,e"a ai1/4a1/2?c"a<<eaa|"use
       PerlIO::Util" a"ae,aa?e|a aaaaPerlIOa a?e|a<<a?aa|a~axaxaeaaca<<a-
       a1/4aaaa

UTILITY	LAYERS
   :flock	    _
       "flock()"a<<a 3/4aac<degree>!aeaaaxa^3a?a1/4aa<section>axa^1aaea3/4aaa

       See PerlIO::flock.

   :creat
       "Fcntl"ac"aaa<<i1/4O_CREATaa1/2?c"aaa

       See PerlIO::creat.

   :excl
       "Fcntl"ac"aaa<<i1/4O_EXCLaa1/2?c"aaa

       See PerlIO::excl.

   :tee
       exae<degree>a(R)aa!axa<<aa^1aaaa1/4a a<<aaea<<aoaaaa

       See PerlIO::tee.

   :dir							_
       PerlIOaxa^3a?a1/4aa<section>axa^1a<section>aaLa~a aaaaeaaa
	     _
       aaLa~a aaaaa^3aa<<aaa!axa<<aa^3aa<<a"aa|ae+-aaai1/4
       ":encodeing"aaa(C)a(R)PerlIOa~axaxae(C)c"a<section>aaa

       See PerlIO::dir.

   :reverse
       aa!axa<<aee a<<eaaa

       a,ae|a"a|eaa?e3/41/4aa<section>aa"reverse()"aaaae<<ea ai1/4	  _
       a^3a^3a1/2a1/4a<<aaaxaaaa(C)a(R)"seek()"a<section>aaaaa^1aaaa1/4a a ae+-aaaaa

       See PerlIO::reverse.

   :fse
       aa!axa<<a.a^1aa a"a^3a^3a1/4aaLa^3a<degree>aae+-aa

       a,aaaaaa!axa<<aaPerla(R)a|aa^3a1/4aaeaaa<section>aaa"ai1/4
       "Encode"aca,aYa1/4a<<aa1/2?aLa|aa!axa<<a.a^1aa a(R)a"a^3a^3a1/4aaLa^3a<degree>a<<axaeaaa
       aaai1/4Windowsa>>Yaxa<section>a eaaca<<aa!axa<<a.a^1aa a(R)a"a^3a^3a1/4aaLa^3a<degree>aaa3/4aaai1/4
       aaa>>Yaxa(R)c<degree>aca<section>a c<degree>acaxae<degree>PERLIO_FSEa<section>aea(R)aaai1/4"use
       PerlIO::fse"a(R)a1/4ae<degree>a"aa|a"a^3a^3a1/4aaLa^3a<degree>aaea(R)aaa?e|aaaa
			      _
       aaai1/4aa(R)a~axaxa1/4a 0.70a<section>c~c<<aaaca,aYa1/4a<<a"aaaLaa

       See PerlIO::fse.

UTILITY	METHODS
   PerlIO::Util->open(mode, args)						    _
       aa<<aaxa^3ecae<degree>a(R)"open()"aa1/4a^3aoai1/4"IO::Handle"aaaa,a<section>a aae?aa
       "open()"a<<ax+-aeaaa"e'a1/2ca"a(C)a1/4a"aaaa
											       _
       Perla(R)"open()"a"c<degree>aaai1/4a3/4a"IO::_ile"a(R)"new()"a"ac<degree>aaai1/4i1/4modea
       a,,a<<a?e a<section>aaaaxa3/4ai1/4aoae~ca<<a "IO::File"a(R)"new()"a(R)a>>Lae?a"aa|a1/2?c"a<section>aaai1/4a,,a<<3-arg
       openaa1/4.e|ai1/4ax+-aeaaa"e'a1/2ca"a(C)a1/4a"aaac^1a<section>"IO::File"a(R)"new()"a"c<degree>aaaa

   PerlIO::Util->known_layers( )
       a(R)c3/4(C)ae,a?a(R)PerlIOa~axaxa(R)aaae?aa

   FILEHANDLE->get_layers( )
       FIL_HANDLEa(R)PerlIOa~axaxa(R)aaae?aa
       aaa PerlIO::get_layers(FILEHANDLE)a(R)aYaa<section>aaa

       See "Querying the layers	of filehandles"	in PerlIO.

   FILEHANDLE->push_layer(layer	[ => arg])			 _
       "binmode(FILEHANDLE, ':layer(arg)')"a"a>>a1/4aaa	ai1_4arga a(C)aaa
       aa1/4a?aa<section>aaaaaa"aa<degree>i1/4":scalar"a<<a 3/4aa|a^1a<<a(C)aaaa!a~a^3a^1aa,aaaa"aa<section>aaa
		     _						_
       aa(R)a!a1/2aaa ax+-aeaaa"e'a1/2ca"a(C)a1/4a"aaaaaeaaaa"aa FILEHANDLEae?aa

   FILEHANDLE->pop_layer( )		      _
       "binmode(FILEHANDLE, ':pop')"a<<caaaaaa FILEHANDLEa(R)aea,e"a(R)	 _
       a~axaxaaaexaaaaai1/4":utf8"a":flock"a(R)aaaaaaa1/4a~axaxaaaexaaa"a a<section>aaaaa
		     _
       aa(R)a!a1/2aaa a(R)ea<<aaexaaa~axaxa(R)aaae?aa

DEPENDENCIES
       Perl 5.8.1 or later, and	a C compiler.

BUGS
       No bugs have been reported.

       Please report any bugs or feature requests to <gfuji (at) cpan.org>, or
       through the web interface at <http://rt.cpan.org/>.

SEE ALSO
       PerlIO::flock, PerlIO::creat, PerlIO::excl, PerlIO::tee,	PerlIO::dir,
       PerlIO::reverse,	PerlIO::fse.

       PerlIO for "push_layer()" and "pop_layer()".

       perliol for implementation details.

       "open" in perlfunc.

       perlopentut.

AUTHOR
       Goro Fuji (ex a3/4e) <gfuji(at)cpan.org>.

LICENSE	AND COPYRIGHT
       Copyright (c) 2008-2010,	Goro Fuji <gfuji(at)cpan.org>. Some rights
       reserved.

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

perl v5.32.1			  2011-05-25		   PerlIO::Util::JA(3)

NAME | VERSION | SYNOPSIS | UTILITY LAYERS | UTILITY METHODS | DEPENDENCIES | BUGS | SEE ALSO | AUTHOR | LICENSE AND COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=PerlIO::Util::JA&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help