aantonyselvam has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: _define word
by marto (Cardinal) on Feb 11, 2011 at 15:07 UTC
Re: _define word
by jethro (Monsignor) on Feb 11, 2011 at 15:00 UTC

    I never heard about '_define' in perl (which is not to say it doesn't exist somewhere). Or did you mean just 'define' and used the underscore like I used the quotes?

    If it is the latter case, then yes, you can define lots of things in perl, for example subroutines. Defining is exactly what you want us to do, i.e. you asked just now "Define 'define'". In a programming language 'defining' is giving the exact details, the implementation for a name, so that the computer knows what to do if that name comes up later

    Anyway, where did you hear the word, in what connection?

Re: _define word
by ikegami (Patriarch) on Feb 11, 2011 at 17:28 UTC
    C compilers uses leading underscores to mark non-standard extensions. There are no non-standard extensions to Perl, so there is no need for leading underscores. No builtin or operator starts with an underscore. If you encountered such, it's defined locally or by some module.
Re: _define word
by Anonymous Monk on Feb 12, 2011 at 02:02 UTC
    Where did you hear? Where do you get your information from?