in reply to When call_argv() actualy executes function

How did you run the first example? Note that the first example expects a Perl program to be loaded from the command line which implements a routine with the name showtime.

It's weird that your second example crashes when accessing ERRSV because that variable should always exist.

According to the documentation, call_argv immediately calls your function. Note that you need to deal with the return values yourself in C.

Replies are listed 'Best First'.
Re^2: When call_argv() actualy executes function
by DrMoisha (Novice) on Mar 31, 2015 at 14:12 UTC
    Thank you for documentation link! Yes, I'm launching it from cmd like very_simple_example_that_does_not_works.exe showtime.pl. If I don't launch it like that - it shows error undefined subroutine