Perl

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • pointer to subroutine?

    0 answers - 730 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    >I have a little perl calculator tool that folks in our group use for
    >various
    >things of the routines it has is a unit converter, _uc. I'd

    like
    >to
    >make that available to the user as "uc". Can I make "uc" work just

    like
    >"_uc"?

    uc() is a Perl built-in function to make a string upper-case. Why not
    rename your custom function with something more descriptive (i.e.
    unit_convert, unitConverter) and avoid a name collision?
    , I'll rename it to something else -- but I still want it to be called
    "_uc" in my code and maybe just "u" available to the user. Is this
    possible?
    - B

Re: pointer to subroutine?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Perl"

EMSDN.COM