Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.480.609 Times

Term::TtyRec::Plus 0.02

  Date Added: May 14, 2010  |  Visits: 1.226

Term::TtyRec::Plus

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



Term::TtyRec::Plus is a Perl module to read a ttyrec. SYNOPSIS Term::TtyRec::Plus is a module that lets you read ttyrec files. The related module, Term::TtyRec is designed more for simple interactions. Term::TtyRec::Plus gives you more information and, using a callback, lets you munge the data block and timestamp. It will do all the subtle work of making sure timing is kept consistent, and of rebuilding each frame header. use Term::TtyRec::Plus; my $ttyrec = Term::TtyRec::Plus->new(); while ($frame_ref = $ttyrec->next_frame()) { # do stuff with $frame_ref, e.g. $total_time += $frame_ref->{diff}; } CONSTRUCTOR AND STARTUP new() Creates and returns a new Term::TtyRec::Plus object. my $ttyrec = Term::TtyRec::Plus->new(); Parameters Here are the parameters that > recognizes. infile The input filename. A value of "-", which is the default, or undef, means STDIN. filehandle The input filehandle. By default this is undef; if you have already opened the ttyrec then you can pass its filehandle to the constructor. If both filehandle and infile are defined, filehandle is used. time_threshold The maximum difference between two frames, in seconds. If undef, which is the default, there is no enforced maximum. The second most common value would be 10, which some ttyrec utilities (such as timettyrec) use. frame_filter A callback, run for each frame before returning the frame to the user of Term::TtyRec::Plus. This callback receives three arguments: the frame text, the timestamp, and the timestamp of the previous frame. All three arguments are passed as scalar references. The previous frames timestamp is undef for the first frame. The return value is not currently looked at. If you modify the timestamp, the module will make sure that change is noted and respected in further frame timestamps. Modifications to the previous frames timestamp are currently ignored. sub halve_frame_time_and_stumblify { my ($data_ref, $time_ref, $prev_ref) = @_; $$time_ref = $$prev_ref + ($$time_ref - $$prev_ref) / 2 if defined $$prev_ref; $$data_ref =~ s/Eidolos/Stumbly/g; } State In addition to passing arguments, you can modify Term::TtyRec::Pluss initial state, if you want to. This could be useful if you are chaining multiple ttyrecs together; you could pass a different initial frame. Support for such chaining might be added in a future version. frame The initial frame number. Default 0. prev_timestamp The previous frames timestamp. Default undef. accum_diff The accumulated difference of all frames seen so far; see the section on diffed_timestamp in next_frame()s return value. Default 0. relative_time The time passed since the first frame. Default 0..

Requirements: No special requirements
Platforms: Linux
Keyword: Default Frame Libraries Module Perl Module Programming Ref Termttyrecplus Time Timestamp Ttyrec
Users rating: 0/10

License: Freeware Size: 57.34 KB
USER REVIEWS
More Reviews or Write Review


TERM::TTYREC::PLUS RELATED
Modules  -  2 News Column Module 2.0
This is a hacked version of default phpnuke News module. It will allow you to show your phpnuke news in two separate columns. The module is an updated version of ZulNews module. It is compatiable with phpnuke 7.9+. It might work with older or...
30.72 KB  
Libraries  -  Regexp::Common::time 0.01
Regexp::Common::time Perl module contains date and time regexps. SYNOPSIS use Regexp::Common qw(time); # Piecemeal, Time::Format-like patterns $RE{time}{tf}{-pat => pattern} # Piecemeal, strftime-like patterns $RE{time}{strftime}{-pat =>...
35.84 KB  
Modules  -  Manufacturers Multilanguage With Description 1.1
This contribution will give you an alternative to the default osCommerce manufacturers module by providing multilanguage support and an extra description field. It can be used as a full replacement whether your shop is multilanguage or not but for...
 
Modules  -  Dual Zones Shipping 1.0
It is just a modified and duplicated version of the default shipping zones module. It is setup to allow Airmail and Economy Airmail. Icons have also been included.Just replace your current zones module with the included files, and activate your...
 
Business  -  Andrew's Time Card Script 0.4.0
A perl script to replace old time card systems with a terminal. It will have a GTK front end.
1.2 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  DateTime::Format::Pg 0.15
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times. SYNOPSIS use DateTime::Format::Pg; my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 ); # 2003-01-16T23:12:01+0200...
19.46 KB  
Libraries  -  FFI::Library 1.02
FFI::Library is a module with Perl Access to Dynamically Loaded Libraries. SYNOPSIS use FFI::Library; $lib = FFI::Library->new("mylib"); $fn = $lib->function("fn", "signature"); $ret = $fn->(...); This module provides access from Perl to...
16.38 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB