Please express your question in code.

Maybe you want to read perlsub again (esp section on prototypes)?

$ perl -le"die prototype('CORE::splice')" \@;$$@ at -e line 1. $ perl -le" sub mysplice (\@$$@){ warn@_} mysplice @a, 1,1,3,4" ARRAY(0x3d8bdc)1134 at -e line 1. $ perl -le" sub mysplice (\@$$@){ warn@_} mysplice 1" Type of arg 1 to main::mysplice must be array (not constant item) at - +e line 1, at EOF Not enough arguments for main::mysplice at -e line 1, at EOF Execution of -e aborted due to compilation errors. $ perl -le" sub mysplice (\@$$@){ warn@_} mysplice 1, @a, " Type of arg 1 to main::mysplice must be array (not constant item) at - +e line 1, at EOF Not enough arguments for main::mysplice at -e line 1, at EOF Execution of -e aborted due to compilation errors. $ perl -le" sub mysplice { warn@_} mysplice \@a, 1, 1" ARRAY(0x97a0ac)11 at -e line 1.
$ perl -le" sub mysplice (\@$$@){ warn@_} sub QQQ { mysplice(@_) } QQ +Q 1, @a, " Not enough arguments for main::mysplice at -e line 1, near "@_) " Execution of -e aborted due to compilation errors. $ perl -le" sub mysplice (\@$$@){ warn@_} sub QQQ(\@$$@) { mysplice(@ +_) } QQQ 1, @a, " Not enough arguments for main::mysplice at -e line 1, near "@_) " Type of arg 1 to main::QQQ must be array (not constant item) at -e lin +e 1, at EOF Not enough arguments for main::QQQ at -e line 1, at EOF Execution of -e aborted due to compilation errors. $ perl -le" sub mysplice (\@$$@){ warn@_} sub QQQ(\@$$@) { mysplice(@ +_) } QQQ @a, 1" Not enough arguments for main::mysplice at -e line 1, near "@_) " Not enough arguments for main::QQQ at -e line 1, at EOF Execution of -e aborted due to compilation errors. $ perl -le" sub mysplice (\@$$@){ warn@_} sub QQQ(\@$$@) { mysplice(@ +_) } QQQ @a, 1,1" Not enough arguments for main::mysplice at -e line 1, near "@_) " Execution of -e aborted due to compilation errors.
$ perl -le" sub mysplice (\@$$@){ warn@_} sub QQQ(\@$$@) { goto &mysp +lice } QQQ @a, 1,1" ARRAY(0x97a064)11 at -e line 1.

In reply to Re^5: Creating wrapper over a wrapper by Anonymous Monk
in thread Creating wrapper over a wrapper by sunnyagarwal008

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.