URI::data(3) User Contributed Perl Documentation URI::data(3)NAME
URI::data - URI that contain immediate data
SYNOPSIS
use URI;
$u = URI->new("data:");
$u->media_type("image/gif");
$u->data(scalar(`cat camel.gif`));
print "$u
";
open(XV, "|xv -") and print XV $u->data;
DESCRIPTION
The "URI::data" class supports "URI" objects belonging to the data URI scheme. The data URI scheme is specified in RFC 2397. It allows
inclusion of small data items as "immediate" data, as if it had been included externally. Examples:
data:,Perl%20is%20good
data:image/gif;base64,R0lGODdhIAAgAIAAAAAAAPj8+CwAAAAAI
AAgAAAClYyPqcu9AJyCjtIKc5w5xP14xgeO2tlY3nWcajmZZdeJcG
Kxrmimms1KMTa1Wg8UROx4MNUq1HrycMjHT9b6xKxaFLM6VRKzI+p
KS9XtXpcbdun6uWVxJXA8pNPkdkkxhxc21LZHFOgD2KMoQXa2KMWI
JtnE2KizVUkYJVZZ1nczBxXlFopZBtoJ2diXGdNUymmJdFMAADs=
"URI" objects belonging to the data scheme support the common methods (described in URI) and the following two scheme specific methods:
$uri->media_type( [$new_media_type] )
This method can be used to get or set the media type specified in the URI. If no media type is specified, then the default
"text/plain;charset=US-ASCII" is returned.
$uri->data( [$new_data] )
This method can be used to get or set the data contained in the URI. The data is passed unescaped (in binary form). The decision
about whether to base64 encode the data in the URI is taken automatically based on what encoding produces the shortest URI string.
SEE ALSO
URI
COPYRIGHT
Copyright 1995-1998 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.0 1999-03-20 URI::data(3)
Check Out this Related Man Page
URI::WithBase(3) User Contributed Perl Documentation URI::WithBase(3)NAME
URI::WithBase - URIs which remember their base
SYNOPSIS
$u1 = URI::WithBase->new($str, $base);
$u2 = $u1->abs;
$base = $u1->base;
$u1->base( $new_base )
DESCRIPTION
This module provides the "URI::WithBase" class. Objects of this class are like "URI" objects, but can keep their base too. The base
represents the context where this URI was found and can be used to absolutize or relativize the URI. All the methods described in URI are
supported for "URI::WithBase" objects.
The methods provided in addition to or modified from those of "URI" are:
$uri = URI::WithBase->new($str, [$base])
The constructor takes an optional base URI as the second argument. If provided, this argument initializes the base attribute.
$uri->base( [$new_base] )
Can be used to get or set the value of the base attribute. The return value, which is the old value, is a URI object or "undef".
$uri->abs( [$base_uri] )
The $base_uri argument is now made optional as the object carries its base with it. A new object is returned even if $uri is already
absolute (while plain URI objects simply return themselves in that case).
$uri->rel( [$base_uri] )
The $base_uri argument is now made optional as the object carries its base with it. A new object is always returned.
SEE ALSO
URI
COPYRIGHT
Copyright 1998-2002 Gisle Aas.
perl v5.18.2 2012-02-11 URI::WithBase(3)
ssh servername.com "echo /$APP=$BUSIN >> $URI; echo /$APP/*=$BUSIN >> $URI"
Ok for example here i ssh into a example servername.com, and I think what it does some line gets put into the urifile , my question is, how would i go about removing that in a script.
in summary, the above code is... (3 Replies)
I have a text file, data.txt, which looks like :-
head1 head2 head3
data1 1 data 1 2 data 1 3
data 2 1 data 2 2 data 2 3
data 3 1 data 3 2 data 3 3
etc etc
I would like to print this file, using the lp -d command,
with a heading line, as follows :-
Report for whatever department as... (2 Replies)
Hi!
I have one file with data that looks like this:
1 data data data data
2 data data data data
3 data data data data
.
.
.
1 data data data data
2 data data data data
3 data data data data
.
.
.
I would like to have awk to write each block to a separate file, like this:
1... (3 Replies)