Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: When call_argv() actualy executes function

by Corion (Patriarch)
on Mar 31, 2015 at 12:41 UTC ( [id://1121973]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1121973]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found