Skip to content

Commit

Permalink
Merge pull request #1 from rwstauner/bless-newer-perls
Browse files Browse the repository at this point in the history
Copy string before blessing it to avoid error in newer perls
  • Loading branch information
sharyanto committed Aug 3, 2011
2 parents fef79e6 + 16861b2 commit 0a1e1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Object/BlankStr.pm
Expand Up @@ -4,7 +4,7 @@ package Object::BlankStr;

use overload q{""} => sub { "" };

sub new { bless(\$_[0], $_[0]) }
sub new { bless(\"$_[0]", $_[0]) }

1;
# ABSTRACT: Blank string object
Expand Down

0 comments on commit 0a1e1a2

Please sign in to comment.