PERL Question -- i need a command line with logic.
Posted on 2007-11-20
for those not familiar with securities indetifiers a sedol is 7 characters in lenght and a cusip is 9.
i have a perl script that inputs data into a sql table. that logic that i need is like so:
sql_sec_table = if the secuirty type starts with 'fs' and the lenght of the cusip is lessthan 9 then put this value both into the sedol and cusip fields else just cusip.
maybe for securities that start with 'fs' we can copy the value over. i don't know if perl has a copy command.