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 50.232.402 Times

HTML::Element::Replacer for Linux 0.06

Company: Terrence Brannon
Date Added: November 17, 2013  |  Visits: 368

HTML::Element::Replacer for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



<br /> < table ><br /><br /> < tr scla="top"/ ><br /><br /> < tr scla="mid" ><br /> < td kmap="brand" > blah < /td ><br /> < td kmap="age" > blah < /td ><br /> < /tr><br /><br /> < tr scla="bot"/ ><br /><br /> < /table ><br /><br />Now let's say you have 5 data rows that you wish to display using the middle tr as your sample. The pure HTML::Tree way to do this would be:<br /><br /> my $sample_tr = $tree->look_down(scla => 'mid');<br /><br /> my @c;<br /> for my $data (@data) {<br /> my $c = $sample_tr->clone;<br /> $c->defmap(kmap => $data);<br /> push @c, $c;<br /> }<br /><br /> $sample->replace_with(@c);<br /><br />We did cheat a bit by using defmap() from HTML::Element::Library. Now, with this class, we can do this:<br /><br /> {<br /> my $replacer = HTML::Element::Replacer->new(look_down => [ scla => 'mid' ]);<br /> <br /> for my $data (@data) {<br /> my $clone = $replacer->push_clone->defmap(kmap => $data); # clone and push onto @temp_list<br /> }<br /><br /> } # replacer goes out of scope and then replaces sample_tr<br /><br />SYNOPSIS<br /><br /> use HTML::Element::Replacer;<br /><br /> {<br /> my $replacer = HTML::Element::Replacer->new(tree => $tree, look_down => [ scla => 'mid' ]);<br /> <br /> for my $data (@data) {<br /> $replacer->push_clone->defmap(attr_name => $data); # clone and push onto @temp_list<br /> }<br /> }<br /> # by default Replacer replaces... so it removes the element you were push_clone()ing

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Class Clone Default Element Htmlelemen Htmlelementlibrary Htmlelementreplacer Htmlelementreplacergtnewlook Mid Push Cloneing Removes Replacer Replacergtpush Clonegtdefmapattr Replacergtpush Clonegtdefmapkmap Replaces Scope Table Temp List
Users rating: 0/10

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


HTML::ELEMENT::REPLACER FOR LINUX RELATED
Miscellaneous  -  Class with default method handler 1.0
This script is a class whose objects can handle undefined method calls, passing them on to a default handler.
 
Database Tools  -  Session Handler Class 1.0
Session Handler Class can store the identifier of a given authenticated user and a session data string in a MySQL database table. A user identifier and the session data string can be retrieved into session variables.Session Handler Class can also...
10 KB  
Database Tools  -  sql_Generator class 1.0
sql_Generator class is meant to make it easier to generate SQL queries for inserting or updating records in a database table.Just specify the required fields, and then call the class functions to retrieve the SQL statement to perform an insert or...
10 KB  
Utilities  -  SetDefaultPrinter 1.0
SetDefaultPrinter sets the default printer to be used by other applications via command line options and/or by selecting out of a list.
39 KB  
Libraries  -  Daizu::Gen 0.3
Daizu::Gen is a default generator class. This class, and subclasses of it, are responsible for deciding which URLs should be created (generated) from each file or directory in a working copy, and generating the output which will be served for...
419.84 KB  
Libraries  -  SWF::Element 0.42
SWF::Element is a set of classes of SWF tags and elements. SYNOPSIS use SWF::Element; use SWF::BinStream; $swf_stream=SWF::BinStream::Write; .... $rect=SWF::Element::RECT->new; $rect->configure(Xmin=>0, Ymin=>0, Xmax=>100, Ymax=>100);...
51.2 KB  
Modules  -  Autocomplete Element 6.x-1.2
Provides an autocomplete form element based on the jquery.autocomplete.It's the same plugin as used in the search on Drupal.org's API reference pages, and is more customisable than the default Drupal one.Some of the advantages include: *...
20.48 KB  
Modules  -  Default submit 6.x-1.0
This is achieved by specifying a class called "default-submit-action" to the desired button, via the form API function describing the form or using hook_form_alter().The module is only a container for the jQuery-based javascript script. It...
10 KB  
Libraries  -  Term::VT102 0.82
Term::VT102 is a class to emulate a DEC VT102 terminal. SYNOPSIS use Term::VT102; my $vt = Term::VT102->new (cols => 80, rows => 24); while ( ) { $vt->process ($_); } The VT102 class provides emulation of most of the functions of a DEC...
24.58 KB  
Database Tools  -  Simple MySQL DB Class 1.0
Simple MySQL DB Class can connect to a MySQL server and execute SQL queries.Key Features of Simple MySQL DB Class:- Execute SQL queries and retrieve single value results or return result rows into arrays- Return the last inserted table row...
10 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
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