SWITCH: {
/case1/ && do
{ $abc=1;
last SWITCH;
};
/case2/ && do
{ $abc=2;
last SWITCH;
};
/case3/ && do
{ $abc=3;
last SWITCH;
};
$no_match=1;
}
HTH
--Paul
For a more in depth answer check out the book
ISBN 1-56592-149-6
It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...