Files
GseTDDUebungKCLR/database/perl/lib/URI/_segment.pm
Riley Schneider b732d8d4b5 Initial Commit
2025-12-03 16:38:10 +01:00

25 lines
416 B
Perl

package URI::_segment;
# Represents a generic path_segment so that it can be treated as
# a string too.
use strict;
use warnings;
use URI::Escape qw(uri_unescape);
use overload '""' => sub { $_[0]->[0] },
fallback => 1;
our $VERSION = '5.06';
sub new
{
my $class = shift;
my @segment = split(';', shift, -1);
$segment[0] = uri_unescape($segment[0]);
bless \@segment, $class;
}
1;