Switch in perl

There is no switch keyword in perl.
So I found this:

I think it’s better than:

if(...){
}elsif(...){
}elsif(...){
}elsif(...){
}

WDYT?

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*