cgi::session::serialize::yaml(3pm) [debian man page]
CGI::Session::Serialize::yaml(3pm) User Contributed Perl Documentation CGI::Session::Serialize::yaml(3pm)NAME
CGI::Session::Serialize::yaml - serializer for CGI::Session
DESCRIPTION
This library can be used by CGI::Session to serialize session data. It uses "YAML", or the faster C implementation, "YAML::Syck" if it is
available. YAML serializers exist not just for Perl but also other dynamic languages, such as PHP, Python, and Ruby, so storing session
data in this format makes it easy to share session data across different languages.
YAML is made to be friendly for humans to parse as well as other computer languages. It creates a format that is easier to read than the
default serializer.
METHODS
freeze($class, \%hash)
Receives two arguments. First is the class name, the second is the data to be serialized. Should return serialized string on success,
undef on failure. Error message should be set using "set_error()|CGI::Session::ErrorHandler/"set_error()""
thaw($class, $string)
Received two arguments. First is the class name, second is the "YAML" data string. Should return thawed data structure on success,
undef on failure. Error message should be set using "set_error()|CGI::Session::ErrorHandler/"set_error()""
SEE ALSO
"CGI::Session", "YAML", "YAML::Syck".
perl v5.10.1 2010-03-29 CGI::Session::Serialize::yaml(3pm)
Check Out this Related Man Page
CGI::Session::Driver::sqlite(3) User Contributed Perl Documentation CGI::Session::Driver::sqlite(3)NAME
CGI::Session::Driver::sqlite - CGI::Session driver for SQLite
SYNOPSIS
$s = new CGI::Session("driver:sqlite", $sid, {DataSource=>'/my/folder/sessions.sqlt'});
$s = new CGI::Session("driver:sqlite", $sid, {Handle=>$dbh});
or
$s = new CGI::Session('driver:sqlite', undef,
{
TableName=>'session',
IdColName=>'my_id',
DataColName=>'my_data',
Handle=>$dbh,
});
DESCRIPTION
sqlite driver stores session data in SQLite files using DBD::SQLite DBI driver. More details see CGI::Session::Driver::DBI, its parent
class.
DRIVER ARGUMENTS
Supported driver arguments are DataSource and Handle. At most only one of these arguments can be set while creating session object.
DataSource should be in the form of "dbi:SQLite:dbname=/path/to/db.sqlt". If "dbi:SQLite:" is missing it will be prepended for you. If
Handle is present it should be database handle ($dbh) returned by DBI::connect().
As of version 1.7 of this driver, the third argument is NOT optional. Using a default database in the temporary directory is a security
risk since anyone on the machine can create and/or read your session data. If you understand these risks and still want the old behavior,
you can set the "DataSource" option to '/tmp/sessions.sqlt'.
BUGS AND LIMITATIONS
None known.
LICENSING
For support and licensing see CGI::Session
perl v5.16.3 2008-07-16 CGI::Session::Driver::sqlite(3)
Hi all,
I am stuck with a ruby script that extracts detials from yaml file and processes accordingly.
the yaml file
confivnic:
device:
vnic1:
policy:
- L2
mode: active
vnic2:
policy:
- L3
- L4
mode: active
type: aggr
... (1 Reply)
Here is a data file, which I believe is in YAML. I am trying to retrieve just the 'addon_domains" section, which doesnt seem to be as easy as I had originally thought. Any help on this would be greatly appreciated!! I have been trying to do this in awk and mostly bash scripting instead of perl... (3 Replies)
Hi everyone!
Hope all of you will be fine. I am new to this forum.
Well, I am trying to configure yaml-0.1.4 in cygwin on Windows 7.
I have written the following command:
*******/tmp/yaml-0.1.4
$ ./configure --prefix=/usr && make && make install
and the following error appeared.
... (3 Replies)