in reply to how to store text file information into my sql database
If you have fixed width records then use unpack
poj#!perl use strict; while (<DATA>){ chomp; my @vals = unpack("A10A10A5A24A10",$_); print join "|", @vals,"\n"; #$sth->execute(@vals); } __DATA__ StudentId Name Dept address city 1 Chellappa CSE 22 xx-colony 2nd street coimbatore 2 Vijay IT 23 yy colony coimbatore
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to store text file information into my sql database
by Anonymous Monk on Dec 26, 2015 at 19:11 UTC | |
by mr_ron (Deacon) on Dec 28, 2015 at 20:47 UTC | |
|
Re^2: how to store text file information into my sql database
by chella2104@gmail.com (Sexton) on Dec 28, 2015 at 05:00 UTC |