Gossamer Forum
Home : Products : DBMan : Discussions :

problem on extract the db file from DBMan

Quote Reply
problem on extract the db file from DBMan
Hi all,

I tried to extract the data from dbman. I've a problem of using split () in Perl.
Quote:
($ID,$Number,$Name,$Date,$Time,$Size)= split(/|/, $_);
print ("$ID\n", "$Number\n", "$Name\n", "$Date\n", "$Time\n", "$Size\n");

I tried to split the pattern '|', however, I cannot get the correct answer. Instead it split every single letter for me.

Say
Quote:
$_ = '20|20|cary|20-Mar-2002|05:30:30|3'
It returns
2
0
|
2
0
|

Any help?

Thanks
Cary
Subject Author Views Date
Thread problem on extract the db file from DBMan caryhung 2345 Apr 3, 2002, 2:10 AM
Thread Re: [caryhung] problem on extract the db file from DBMan
Paul 2307 Apr 3, 2002, 2:23 AM
Post Re: [Paul] problem on extract the db file from DBMan
caryhung 2289 Apr 3, 2002, 6:45 PM