Unix and Linux Discussions Tagged with dynamic |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
14 |
20,376 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,332 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,937 |
Shell Programming and Scripting |
|
|
|
5 |
5,951 |
Shell Programming and Scripting |
|
|
|
3 |
5,043 |
Shell Programming and Scripting |
|
|
|
5 |
2,473 |
Shell Programming and Scripting |
|
|
|
2 |
2,512 |
Solaris |
|
|
|
1 |
2,056 |
Shell Programming and Scripting |
|
|
|
2 |
8,270 |
HP-UX |
|
|
|
2 |
7,126 |
Web Development |
|
|
|
1 |
3,147 |
Homework & Coursework Questions |
|
|
|
3 |
3,438 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,976 |
Shell Programming and Scripting |
|
|
|
9 |
3,711 |
Shell Programming and Scripting |
|
|
|
5 |
7,247 |
Shell Programming and Scripting |
|
|
|
1 |
6,914 |
Shell Programming and Scripting |
|
|
|
0 |
1,259 |
Software Releases - RSS News |
|
|
|
1 |
3,850 |
Red Hat |
|
|
|
0 |
1,001 |
Software Releases - RSS News |
|
|
|
10 |
4,266 |
Shell Programming and Scripting |
|
|
|
0 |
2,771 |
Shell Programming and Scripting |
|
|
|
3 |
4,566 |
Shell Programming and Scripting |
|
|
|
5 |
3,494 |
Programming |
|
|
|
0 |
1,794 |
Oracle Updates (RSS) |
|
|
|
0 |
3,021 |
Complex Event Processing RSS News |
|
|
|
0 |
1,001 |
Software Releases - RSS News |
|
|
|
4 |
13,056 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
11,684 |
Programming |
|
|
|
0 |
946 |
Software Releases - RSS News |
|
|
|
1 |
7,490 |
Cybersecurity |
|
|
|
0 |
1,022 |
Software Releases - RSS News |
|
|
|
3 |
2,813 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,978 |
Shell Programming and Scripting |
|
|
|
1 |
8,335 |
HP-UX |
|
|
|
0 |
1,110 |
Software Releases - RSS News |
|
|
|
0 |
2,569 |
Oracle Updates (RSS) |
|
|
|
0 |
4,671 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,564 |
Software Releases - RSS News |
|
|
|
0 |
1,154 |
Software Releases - RSS News |
|
|
|
0 |
1,275 |
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)