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

I am confused by a "Learning Perl" sample showing "unshift"

by KenAndrews (Initiate)
on Jan 22, 2021 at 20:41 UTC ( [id://11127306]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    unshift @lArray, 5; print "Array: @lArray\n";
    unshift @lArray, 4; print "Array: @lArray\n";
    unshift @lArray, @lNums; print "Array: @lArray\n";
    
  2. or download this
    unshift @lArray, 1
    unshift @lArray, 2
    unshift @lArray, 3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found