in reply to Re^4: Error in insertion of MULTIPLE FILENAMES & CONTENTS INTO DATABASE
in thread Error in insertion of MULTIPLE FILENAMES & CONTENTS INTO DATABASE
toperl -e 'print "$_\n" for (1,2,3,4)'
See what kind of results you get... The truth is that, no, 'while' does not iterate over the list/array, it loops while it is true (evaluated as a boolean). What you're looking for is the 'for' statement.perl -e 'print "$_\n" while (1,2,3,4)'
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Error in insertion of MULTIPLE FILENAMES & CONTENTS INTO DATABASE
by Nik (Initiate) on Jan 01, 2008 at 21:43 UTC |