Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re3: Use an array slices

by TVSET (Chaplain)
on Apr 28, 2003 at 07:14 UTC ( #253613=note: print w/ replies, xml ) Need Help??

in reply to Re3: Use an array slices
in thread Use an array slices

Well, "ZERO". But that's easily solvable (although it looks less pretty):

#!/usr/bin/perl -wT use strict; my $value = 10; SWITCH: for ($value) { /^0$/ && do {print "ZERO\n"; last; }; /^1$/ && do {print "ONE\n"; last; }; /^10$/ && do {print "TEN\n"; last; }; print "NONE OF THE ABOVE\n"; }

Leonid Mamtchenkov

Comment on Re: Re3: Use an array slices
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-11-27 21:18 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (732 votes), past polls