Created
January 19, 2009 09:25
-
-
Save kyanny/48929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/perl | |
use strict; | |
use Data::Dumper; | |
warn Dumper { key => 'value' }; | |
sub ret1 { return } | |
sub ret2 { return undef } | |
sub _wantarray { wantarray ? 'list' : 'scalar' } | |
warn Dumper { ret => ret1(), key => 'value' }; | |
warn Dumper { ret => ret2(), key => 'value' }; | |
warn Dumper { ret => _wantarray(), key => 'value' }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment