Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: fall through switch/case in perl

by jeffa (Bishop)
on Sep 07, 2004 at 18:50 UTC ( [id://389171]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    no warnings;
    ...
    my $var   = shift() - 1;
    
    print join '', reverse @array[0..$var];
    
  2. or download this
    perl -le"@_=reverse a..j;print join'',reverse@_[0..shift()-1]" 5
    

Log In?
Username:
Password:

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

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

    No recent polls found