in reply to Re^2: Use of uninitialized value in substr
in thread Use of uninitialized value in substr
#! perl -slw use 5.010; use strict; use Inline C => Config => BUILD_NOISY => 1; use Inline C => <<'END_C', NAME => 'uCmp', CLEAN_AFTER_BUILD => 0; bool uCmp( SV* t ) { return (bool)( t == (&PL_sv_undef) ); } END_C print 'explicit undef: ', uCmp( undef ) ? 1 : 0; print '`foo`: ', uCmp( scalar(`foo`) ) ? 1 : 0; __END__ explicit undef: 1 Can't exec "foo": No such file or directory at a.pl line 14. `foo`: 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Use of uninitialized value in substr
by BrowserUk (Patriarch) on May 03, 2010 at 20:33 UTC | |
by ikegami (Patriarch) on May 03, 2010 at 21:09 UTC | |
by BrowserUk (Patriarch) on May 03, 2010 at 21:26 UTC | |
by ikegami (Patriarch) on May 03, 2010 at 23:32 UTC | |
|
Re^4: Use of uninitialized value in substr
by Argel (Prior) on May 04, 2010 at 00:10 UTC | |
by ikegami (Patriarch) on May 04, 2010 at 00:19 UTC |