T. Linden > Crypt-PWSafe3-1.14 > Crypt::PWSafe3::Field

Download:
Crypt-PWSafe3-1.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.04   Source  

NAME ^

Crypt::PWSafe3::Field - represent a passwordsafe v3 record field.

SYNOPSIS ^

 use Crypt::PWSafe3;
 my $record = $vault->getrecord($uuid);
 print $record-{field}->{user}->raw();
 print $record-{field}->{user}->len();

DESCRIPTION ^

Crypt::PWSafe3::Field represents a record field. This is the raw implementation and you normally don't have to cope with it.

However, if you ever do, you can do it this way:

 my $field = new Crypt::PWSafe3::Field(
                                        value => 'testing',
                                        name  => 'title
                                      );
 $record->addfield($field);

This is the preferred way to do it, Crypt::PWSafe3 does it internaly exactly like this.

If there already exists a record field of this type, it will be overwritten.

The better way to handle fields is the method modifyfield() of the class Crypt::PWSafe3::Record.

SEE ALSO ^

Crypt::PWSafe3::Record

AUTHOR ^

T. Linden <tlinden@cpan.org>

COPYRIGHT ^

Copyright (c) 2011-2013 by T.Linden <tlinden@cpan.org>. All rights reserved.

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: