Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Is it ok to assign a popped value to a variable as shown.

by perl514 (Pilgrim)
on Dec 05, 2011 at 13:29 UTC ( #941841=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    unshift @array, "LFY";
    print "Now we have @array\n";
    
  2. or download this
    C:\perl>perl practice.pl
    @array has Book Novel Magazine Guide so total:4
    ...
    Now we have Novel Magazine Guide LFY
    Now we have Novel Magazine Guide and I have saved LFY
    Now we have LFY Novel Magazine Guide
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2014-07-31 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls