Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Comment on


I hesitate to mention this, but in this particular example (certainly not every example - and this probably isn't an advisable way to do it), the sub wouldn't need to have an arrayref passed, technically.

sub somesub { my $first = shift; my @second = @_; my $third = pop @second; }

Granted, this doesn't help the OP with his problem, but a couple of people mentioned that it wasn't possible to have a flattened array in the middle of the arguments, when in a crazy way, it is possible.


In reply to Re: Predefining sub Parameters by mrborisguy
in thread Predefining sub Parameters by willyyam

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (9)
    As of 2014-12-27 06:49 GMT
    Find Nodes?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?

      Results (176 votes), past polls