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: Re: [Zhris] How to append or prepend a string to a variable : Edit Log



Tejas
User

Nov 19, 2014, 6:22 AM


Views: 34442
Re: [Zhris] How to append or prepend a string to a variable

Zhris,

The two input files are delimited with diffrent demlimiters
dur to some constraints

Second file is delimited with ; as the values might contain | in it

ex: my|tranasaction|success can be a value

And reading a second file isnt staright forward , it doesnt hasve ORG code in it
we have to match it to the exisiting sheet like this, which is failing

Code
 my ( $org, @data ) = split /\|/, $line; 
if ($org eq '04' || $org eq '2Y' || $org eq '2R' || $org eq '3S' || $org eq '79' || $org eq '3T' || $org eq '3M' || $org eq '2H'){
$org = "1" ; }

Thanks
Tejas


(This post was edited by Tejas on Nov 19, 2014, 6:26 AM)


Edit Log:
Post edited by Tejas (User) on Nov 19, 2014, 6:26 AM


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

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