i have declared $count = -1 initially , so it does work
In reply to Re^2: what is @$varname in perl by sandy105 in thread what is @$varname in perl by sandy105