Your array contains a single scalar string, not three lines. You want something like this instead:
my @cp_op = ( "111", "222", "333" );
In reply to Re: Counter in foreach loop
by jwkrahn
in thread Counter in foreach loop
by RustyShackelford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |