-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overloading boolean conversion #161
Comments
From tgy@chocobo.orgI overload boolean conversion. '!' and 'unless' don't work. #!/usr/bin/perl -wl package Boolean; use overload ( sub new { package main; for (1, 0) { my $i = new Boolean $_; print $i ? 1 : 0; if ($i) { unless ($i) { print ''; __END__ 1 NUM: 0 0 Perl Info
|
Migrated from rt.perl.org#966 (status was 'resolved')
Searchable as RT966$
The text was updated successfully, but these errors were encountered: