NAME
XML::Literal - Syntax suppor for XML literals
SYNOPSIS
# This is not a source filter: it just augments glob().
use XML::Simple;
use XML::Literal \&XMLin;
# Simple element
my $xml1 =
;
# With variable interpolation
my $xml2 = ;
# With an extra pair of angle brackets
my $xml3 = < Some Text >;
# With escaped angle brackets
my $xml4 = Some Text \;
# Direct call to the xml-building glob'' constructor
my $xml5 = glob'
Some Text
';
# This does not look like XML, so it's still shell glob
my @files = <*.*>;
DESCRIPTION
This module takes one function at its "use" line. Afterwards, all
single-line "<...>" calls that looks like a XML literal will be
processed with that function, instead of the built-in shell "glob".
Support for qx<...> overriding for multiline XML literals is planned for
Perl 5.10.
AUTHORS
Audrey Tang
COPYRIGHT (The "MIT" License)
Copyright 2006 by Audrey Tang .
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is fur- nished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.