Unix and Linux Discussions Tagged with dynamic |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
14 |
14,281 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,013 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
5,914 |
Shell Programming and Scripting |
|
|
|
5 |
5,448 |
Shell Programming and Scripting |
|
|
|
3 |
4,542 |
Shell Programming and Scripting |
|
|
|
5 |
2,092 |
Shell Programming and Scripting |
|
|
|
2 |
2,262 |
Solaris |
|
|
|
1 |
1,867 |
Shell Programming and Scripting |
|
|
|
2 |
7,695 |
HP-UX |
|
|
|
2 |
6,643 |
Web Development |
|
|
|
1 |
2,690 |
Homework & Coursework Questions |
|
|
|
3 |
3,004 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,166 |
Shell Programming and Scripting |
|
|
|
9 |
3,306 |
Shell Programming and Scripting |
|
|
|
5 |
6,645 |
Shell Programming and Scripting |
|
|
|
1 |
6,480 |
Shell Programming and Scripting |
|
|
|
0 |
1,013 |
Software Releases - RSS News |
|
|
|
1 |
3,481 |
Red Hat |
|
|
|
0 |
687 |
Software Releases - RSS News |
|
|
|
10 |
3,834 |
Shell Programming and Scripting |
|
|
|
0 |
2,438 |
Shell Programming and Scripting |
|
|
|
3 |
4,347 |
Shell Programming and Scripting |
|
|
|
5 |
3,120 |
Programming |
|
|
|
0 |
1,612 |
Oracle Updates (RSS) |
|
|
|
0 |
2,770 |
Complex Event Processing RSS News |
|
|
|
0 |
742 |
Software Releases - RSS News |
|
|
|
4 |
12,666 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
10,843 |
Programming |
|
|
|
0 |
756 |
Software Releases - RSS News |
|
|
|
1 |
7,099 |
Cybersecurity |
|
|
|
0 |
759 |
Software Releases - RSS News |
|
|
|
3 |
2,423 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,298 |
Shell Programming and Scripting |
|
|
|
1 |
7,924 |
HP-UX |
|
|
|
0 |
849 |
Software Releases - RSS News |
|
|
|
0 |
2,343 |
Oracle Updates (RSS) |
|
|
|
0 |
4,094 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,201 |
Software Releases - RSS News |
|
|
|
0 |
882 |
Software Releases - RSS News |
|
|
|
0 |
988 |
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.16.2 2008-05-31 dynamic(3)