syphilis has asked for the wisdom of the Perl Monks concerning the following question:
It does as desired on perl 5.8.x, but fails to compile on 5.00505 (because there are too many arguments being supplied to open).use strict; my $var = ''; if($] > 5.007) { if(open (my $mem, '>', \$var)) {print "Success\n"} } else {print "Ok\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compile time problem
by FunkyMonk (Bishop) on Oct 06, 2007 at 15:13 UTC | |
by syphilis (Archbishop) on Oct 06, 2007 at 15:31 UTC | |
by FunkyMonk (Bishop) on Oct 06, 2007 at 16:09 UTC | |
by shmem (Chancellor) on Oct 06, 2007 at 20:58 UTC | |
| |
|
Re: Compile time problem
by BrowserUk (Patriarch) on Oct 06, 2007 at 16:56 UTC | |
|
Re: Compile time problem
by perlfan (Parson) on Oct 06, 2007 at 15:13 UTC | |
by FunkyMonk (Bishop) on Oct 06, 2007 at 15:24 UTC | |
| |
|
Re: Compile time problem
by ikegami (Patriarch) on Oct 08, 2007 at 07:39 UTC | |
|
Re: Compile time problem
by graff (Chancellor) on Oct 06, 2007 at 16:07 UTC | |
by syphilis (Archbishop) on Oct 07, 2007 at 10:38 UTC | |
|
Re: Compile time problem
by Anonymous Monk on Oct 06, 2007 at 20:53 UTC |