in reply to Re: CORE and CORE::GLOBAL operators
in thread CORE and CORE::GLOBAL operators

Many thanks ikegami,

I'm writing an AUTOLOAD function that will provide access to the CORE operators on a remote machine accessed via SSH. s.t. like:

my $machine = GRID::Machine->new(host => $host); my $r = $machine->glob('*.c'); etc.
I don't want to make a "blind" call. I want to know if the operator exists before building the stub.

Many thanks

Casiano

Replies are listed 'Best First'.
Re^3: CORE and CORE::GLOBAL operators
by ikegami (Patriarch) on Mar 04, 2008 at 17:01 UTC

    prototype will do fine, then. It'll answer your question for every builtin that you don't need to handle specially anyway.

    The functions you need to handle specially are the functions like print, whose syntax cannot be duplicated in Perl (short of using source filters). For print, you'll have to create a redirector for print LIST and one for print FILE LIST.