in reply to Re: There is more than one way (and mine is not the best)
in thread There is more than one way (and mine is not the best)

my ($qnum,$code,$ctext,$ntext,$stext)=('','','','','');

If it were me, I'd do that like this:

  $_ = '' for my ($qnum,$code,$ctext,$ntext,$stext);

Basically, I take the precept that counting things is bad. It's easy to mis-count. In this case, trying to make sure you have the same amount of empty strings on the RHS as variables on the LHS involves counting, and thus should be avoided. 8^)