Unix and Linux Discussions Tagged with dynamic |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
14 |
15,393 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,056 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,115 |
Shell Programming and Scripting |
|
|
|
5 |
5,541 |
Shell Programming and Scripting |
|
|
|
3 |
4,614 |
Shell Programming and Scripting |
|
|
|
5 |
2,159 |
Shell Programming and Scripting |
|
|
|
2 |
2,293 |
Solaris |
|
|
|
1 |
1,888 |
Shell Programming and Scripting |
|
|
|
2 |
7,804 |
HP-UX |
|
|
|
2 |
6,700 |
Web Development |
|
|
|
1 |
2,774 |
Homework & Coursework Questions |
|
|
|
3 |
3,083 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,249 |
Shell Programming and Scripting |
|
|
|
9 |
3,363 |
Shell Programming and Scripting |
|
|
|
5 |
6,713 |
Shell Programming and Scripting |
|
|
|
1 |
6,538 |
Shell Programming and Scripting |
|
|
|
0 |
1,029 |
Software Releases - RSS News |
|
|
|
1 |
3,532 |
Red Hat |
|
|
|
0 |
711 |
Software Releases - RSS News |
|
|
|
10 |
3,878 |
Shell Programming and Scripting |
|
|
|
0 |
2,485 |
Shell Programming and Scripting |
|
|
|
3 |
4,373 |
Shell Programming and Scripting |
|
|
|
5 |
3,198 |
Programming |
|
|
|
0 |
1,635 |
Oracle Updates (RSS) |
|
|
|
0 |
2,820 |
Complex Event Processing RSS News |
|
|
|
0 |
760 |
Software Releases - RSS News |
|
|
|
4 |
12,715 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
10,923 |
Programming |
|
|
|
0 |
780 |
Software Releases - RSS News |
|
|
|
1 |
7,146 |
Cybersecurity |
|
|
|
0 |
779 |
Software Releases - RSS News |
|
|
|
3 |
2,460 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,409 |
Shell Programming and Scripting |
|
|
|
1 |
7,985 |
HP-UX |
|
|
|
0 |
870 |
Software Releases - RSS News |
|
|
|
0 |
2,375 |
Oracle Updates (RSS) |
|
|
|
0 |
4,160 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,226 |
Software Releases - RSS News |
|
|
|
0 |
905 |
Software Releases - RSS News |
|
|
|
0 |
1,014 |
Software Releases - RSS News |
dynamic(3) User Contributed Perl Documentation dynamic(3)
NAME
PerlIO::via::dynamic - dynamic PerlIO layers
SYNOPSIS
open $fh, $fname;
$p = PerlIO::via::dynamic->new
(translate =>
sub { $_[1] =~ s/$Filename[:ws-./\]*$/$Filename: $fname$/e},
untranslate =>
sub { $_[1] =~ s/$Filename[:ws-./\]*$/$Filename$/});
$p->via ($fh);
binmode $fh, $p->via; # deprecated
DESCRIPTION
"PerlIO::via::dynamic" is used for creating dynamic PerlIO layers. It is useful when the behavior or the layer depends on variables. You
should not use this module as via layer directly (ie :via(dynamic)).
Use the constructor to create new layers, with two arguments: translate and untranslate. Then use "$p-"via ($fh)> to wrap the handle. Once
<$fh> is destroyed, the temporary namespace for the IO layer will be removed.
Note that PerlIO::via::dynamic uses the scalar fields to reference to the object representing the dynamic namespace.
OPTIONS
translate
A function that translate buffer upon write.
untranslate
A function that translate buffer upon read.
use_read
Use "READ" instead of "FILL" for the layer. Useful when caller expect exact amount of data from read, and the "untranslate" function
might return different length.
By default "PerlIO::via::dynamic" creates line-based layer to make "translate" implementation easier.
AUTHORS
Chia-liang Kao <clkao@clkao.org>
COPYRIGHT
Copyright 2004 by Chia-liang Kao <clkao@clkao.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>
perl v5.18.2 2012-11-03 dynamic(3)