Dear All
I am stuck in one problem. Kindly help me.
I am taking below mention file as input file and want some op file as mention below.
Kindly send me all possible suggestion and query.
Thnaks
Jaydeep
bELOW IS THE INPUT FILE:
*** Connected to BSCANGR ***... (1 Reply)
Hi all, I want to start a new topic on this matter
I have this script,
#!perl
use strict;
use warnings;
use Data::Dumper;
open my $log, '>', 'log-external.txt' or die "Could not open log: $!";
print $log "Subnet,Static,DHCP,Unused\n";
open my $dump, '>', 'dump.log' or die... (2 Replies)
Dear all
I had input file as mention below and want op as mention.
Kindly let me knw possible ways.
Regards
Jaydeep
INPUT:
RXOTX-48-1
2A 34
2B 35
RXOTX-499-2
2C 32
RXOTX-4-1
2D 23
OUTPUT: (3 Replies)
Hello Team i have a file with following data (as columns).
I need implement a syntax like below for altering table
ALTER TABLE1 TABLENAME
ADD COLUMN COL1 CHAR(5) NOT NULL WITH DEFAULT
ADD COLUMN COL2 CHAR(5)
..
..
ADD COLUMN COLn CHAR(5) NOT NULL... (1 Reply)
Hi,
i have to insert the content of source.txt into the searched pattern of the file second.txt.
$cat source.txt
One
Two
Three
.
.
$cat second.txt
This is second file
pattern match start here
pattern match end here
end of the file
so the result will be like this (4 Replies)
I am in the process of developing a perl cgi page.
I had succeeded in developing the page but there are few errors/issues with the page.
description about cgi page:
My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Hi,
I have a data as follows in some files, i want to change CHAR(2-20) to VARCHAR(2-20). I should not touch any line with CHAR(1)
Example:
Input:
cur_rev_stage_cd CHAR(5) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,
prev_rev_stage_cd CHAR(5) CHARACTER SET LATIN NOT... (7 Replies)
I need to create a fixed width file based on the column lengths.
lets assume I have six(this may be dynamic) fields each are of different length
column1=6 #size of the column
column2=3
column3=2
column4=3
column5=4
column6=5
I tried below code snippet but it is not working
echo... (4 Replies)
Discussion started by: gvkumar25
4 Replies
LEARN ABOUT DEBIAN
xml::easy::content
XML::Easy::Content(3pm) User Contributed Perl Documentation XML::Easy::Content(3pm)NAME
XML::Easy::Content - abstract form of XML content
SYNOPSIS
use XML::Easy::Content;
$content = XML::Easy::Content->new([
"foo",
$subelement,
"bar",
]);
$twine = $content->twine;
DESCRIPTION
An object of this class represents a chunk of XML content, the kind of matter that can be contained within an XML element. This is in an
abstract form, intended for general manipulation. It is completely isolated from the textual representation of XML, and holds only the
meaningful content of the chunk. The data in a content object cannot be modified: different data requires the creation of a new object.
An XML content chunk consists of a sequence of zero or more characters and XML elements, interspersed in any fashion. Character content
can use almost all Unicode characters, with only a few characters (such as most of the ASCII control characters) prohibited by the
specification from being directly represented in XML. Each XML element in a content chunk itself recursively contains a chunk of content,
in addition to having attached metadata.
This class is not meant to be subclassed. XML content is unextendable, dumb data. Content objects are better processed using the
functions in XML::Easy::NodeBasics than using the methods of this class.
CONSTRUCTOR
XML::Easy::Content->new(TWINE)
Constructs and returns a new content chunk object with the specified content. TWINE must be a reference to an array listing the
chunk's content in twine form (see "Twine" in XML::Easy::NodeBasics). The content is checked for validity, against the XML 1.0
specification, and the function "die"s if it is invalid.
METHODS
$content->twine
Returns a reference to an array listing the chunk's content in twine form (see "Twine" in XML::Easy::NodeBasics).
The returned array must not be subsequently modified. If possible, it will be marked as read-only in order to prevent modification.
$content->content
Deprecated alias for the "twine" method.
SEE ALSO
XML::Easy::Element, XML::Easy::NodeBasics
AUTHOR
Andrew Main (Zefram) <zefram@fysh.org>
COPYRIGHT
Copyright (C) 2008, 2009 PhotoBox Ltd
Copyright (C) 2009, 2010, 2011 Andrew Main (Zefram) <zefram@fysh.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-11-16 XML::Easy::Content(3pm)