CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
[beginner ] Need help with String manipiulation

 



fmarchioni
newbie

Sep 17, 2001, 1:32 AM

Post #1 of 1 (483 views)
[beginner ] Need help with String manipiulation Can't Post

Hi all,
I'm new to perl and I'd like to use it to auto-generate a file from an Oracle desc. So this is my problem: I have the following plain text file:

CUSTOMER_ID NOT NULL NUMBER
CUSTOMER_TYPE VARCHAR2(20)

Now what I need is to have inside some variables the single tokens of a row. So so example for the first row:

$fieldname = "CUSTOMER_TYPE"
$notnull = "true"
$type = "NUMBER"

..for the second.....

$fieldname = "CUSTOMER_ID"
$notnull = "false"
$type = "VARCHAR"

Can anyone give me some help about how to do it?
Thanks in advance
Francesco



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives