Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 perusing the Monastery: (8)
As of 2015-07-04 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls