Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
package Overloaded; ##no critic (Modules::RequireFilenameMatchesPackage)
use strict;
sub new {
my $class = shift;
bless { string => shift, num => shift }, $class;
}
package Overloaded::Compare;
use strict;
our @ISA = qw(Overloaded);
# Sometimes objects have only comparison ops overloaded and nothing else.
# For example, DateTime objects.
use overload
q{eq} => sub { $_[0]->{string} eq $_[1] },
q{==} => sub { $_[0]->{num} == $_[1] };
package Overloaded::Ify;
use strict;
our @ISA = qw(Overloaded);
use overload
q{""} => sub { $_[0]->{string} },
q{0+} => sub { $_[0]->{num} };
1;