Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Inserting an element into an array after a certain element

by Roy Johnson (Monsignor)
on Mar 31, 2005 at 21:07 UTC ( [id://443973]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub insert_after_first {
        return if @_ < 3;
    ...
                 : insert_after_first( $elem, $new, @_ )
               );
    }
    
  2. or download this
    sub insert_after_first {
        return if @_ < 3;
    ...
                 : insert_after_first( $elem, @_ )
                 );
    }
    
  3. or download this
    sub insert_after_first {
        return if @_ < 3;
    ...
                 : &insert_after_first
           );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443973]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found