summaryrefslogtreecommitdiff
path: root/lib/Net/XRC/Data/string.pm
blob: df27b03fe987ebd139a0997e7949f29d06472e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package Net::XRC::Data::string;

use strict;
use vars qw(@ISA);
use Net::XRC::Data;

@ISA = qw(Net::XRC::Data);

sub encode {
  my $self = shift;
  my $string = $$self;
  $string =~ s/(["\\])/\\$1/g;
  qq("$string");
}