in reply to Regular Exp. in foreach loop Help!
is effectivelymy @chk_acc = split('-',@account);
Typically, you would use a scalar, not an array, as input to split. The array is being evaluated in scalar context, which results in the size of the array (4).my @chk_acc = split('-',4);
Also, use strict and warnings because warnings will give you other useful info.
perltidy can help the indenting-impaired :)
|
|---|