home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl_ste.zip
/
auto
/
LWP
/
UserAgent
/
clone.al
< prev
next >
Wrap
Text File
|
1997-11-28
|
376b
|
16 lines
# NOTE: Derived from ./blib/lib/LWP/UserAgent.pm. Changes made here will be lost.
package LWP::UserAgent;
sub clone
{
my $self = shift;
my $copy = bless { %$self }, ref $self; # copy most fields
# elements that are references must be handled in a special way
$copy->{'no_proxy'} = [ @{$self->{'no_proxy'}} ]; # copy array
$copy;
}
1;