Here I'm assuming that 1st column is for name and 2nd column is for email address, you can use the correct column number here.Since Perl arrays are zero-based, your
should beprint "Name : $results[1], Email: $results[2]\n";
print "Name : $results[0], Email: $results[1]\n";
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial DeltronicsIn reply to Re^2: Need help writing a script that interacts with a MySQL DB!
by CountZero
in thread Need help writing a script that interacts with a MySQL DB!
by MDTech.us_MAN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |