File: 49796.pl

package info (click to toggle)
liblist-moreutils-perl 0.33-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 260 kB
  • sloc: perl: 1,064; ansic: 236; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl 

use strict;
use warnings;
use List::MoreUtils;
print List::MoreUtils->VERSION, "\n";

my $obj = MyObj->new;
for (;;) {
  eval { List::MoreUtils::uniq ($obj, $obj) };
}


package MyObj;
use overload '""' => \&stringize;
sub new {
  my ($class) = @_;
  return bless {}, $class;
}
sub stringize {
  die "MyObj stringize error";
}