Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
397 B

  1. package URI::_segment;
  2. # Represents a generic path_segment so that it can be treated as
  3. # a string too.
  4. use strict;
  5. use URI::Escape qw(uri_unescape);
  6. use overload '""' => sub { $_[0]->[0] },
  7. fallback => 1;
  8. sub new
  9. {
  10. my $class = shift;
  11. my @segment = split(';', shift, -1);
  12. $segment[0] = uri_unescape($segment[0]);
  13. bless \@segment, $class;
  14. }
  15. 1;