W
wilburlo
Hi,
I attempting to debug an odd open3 call that was passed something
like this:
open3( ...,...,..., @args);
The @args is where things get interesting the invocation is:
perl '' test.pl
Where the '' is 2 single quotes representing an empty entity, and
test.pl can be any script.
When perl 5.8.8 & perl 5.9.5 see the "empty" argument they read source
code from STDIN and then execute the code from STDIN. It halts,
waiting for code from the keyboard.
This ?bug? originally came about when someone tried to do this:
@args = ( 'perl',$extralibs,'etc...');
problem was $extralibs was empty.
On one side of the coin, I don't see any documentation regarding this
situation in "perldoc perl". On the other side of the coin, empty
arguments should probably be annoyed. And on yet the another side of
the coin, I should check $extralibs for being empty before stuffing it
into an array!
I didn't think a perlbug report was proper, so following the INSTALL
instructions ... here it is.
-daniel
I attempting to debug an odd open3 call that was passed something
like this:
open3( ...,...,..., @args);
The @args is where things get interesting the invocation is:
perl '' test.pl
Where the '' is 2 single quotes representing an empty entity, and
test.pl can be any script.
When perl 5.8.8 & perl 5.9.5 see the "empty" argument they read source
code from STDIN and then execute the code from STDIN. It halts,
waiting for code from the keyboard.
This ?bug? originally came about when someone tried to do this:
@args = ( 'perl',$extralibs,'etc...');
problem was $extralibs was empty.
On one side of the coin, I don't see any documentation regarding this
situation in "perldoc perl". On the other side of the coin, empty
arguments should probably be annoyed. And on yet the another side of
the coin, I should check $extralibs for being empty before stuffing it
into an array!
I didn't think a perlbug report was proper, so following the INSTALL
instructions ... here it is.
-daniel