HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/.cpan/build/URI-5.29-0/t/storable-test.pl
use strict;
use warnings;
use Storable qw( retrieve store );

if (@ARGV && $ARGV[0] eq "store") {
    require URI;
    require URI::URL;
    my $a = {
        u => new URI('http://search.cpan.org/'),
    };
    print "# store\n";
    store [URI->new("http://search.cpan.org")], 'urls.sto';
} else {
    require Test::More;
    Test::More->import(tests => 3);
    note("retrieve");
    my $a = retrieve 'urls.sto';
    my $u = $a->[0];
    #use Data::Dumper; print Dumper($a);

    is($u, "http://search.cpan.org");

    is($u->scheme, "http");

    is(ref($u), "URI::http");
}