in reply to Need Debug Help

The kind of for loop you're trying to write takes its terms separated by semicolons:

for ( my $i = init(); $i != condition(); $i++ ) {}

What you actually wrote here has commas instead, so it's taking that as a list of three things to loop over.

for ( 1, 2, 3 ) {}

So change those commas to semicolons, and that should help.

Replies are listed 'Best First'.
Re^2: Need Debug Help
by naveed010 (Acolyte) on Jan 18, 2008 at 18:11 UTC
    Kyle, you da man.

    Thanks much. Works like a charm.

    for ($ct=1; $cfg->param("FTP".$ct.".targetIP")!= ''; $ct++)
    I'm using a blend of perl and Oracle and the Oracle's for( x, x<y, x++) statement uses comments.

    DOH! :)

      Careful man,

      Oracle's for loops' syntax is
      FOR counter IN [REVERSE] lowest..highest LOOP {.statements.} END LOOP;