in reply to Re^2: Doubt on defined-ness
in thread Doubt on defined-ness
Interesting idea... but I can't even get that to return an empty string:
#!/usr/bin/perl use Fcntl; fcntl(STDIN, F_GETFL, my $flags) or die "Couldn't get flags: $!\n"; fcntl(STDIN, F_SETFL, $flags|O_NONBLOCK) or die "Couldn't set flags: $ +!\n"; $_=<STDIN>; use Data::Dumper; print Dumper $_; # --> prints $VAR1 = undef;
Maybe you can construct a better case (?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Doubt on defined-ness
by ikegami (Patriarch) on Jun 18, 2008 at 23:42 UTC | |
by almut (Canon) on Jun 18, 2008 at 23:51 UTC |