首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

perl,hash有关问题

2012-04-02 
perl,hash问题请高手指教下,本人新手。。。WriteaperlscriptwhichsplitsthetableintoahashwithEPS ,netpro

perl,hash问题
请高手指教下,本人新手。。。

Write   a   perl   script   which   splits   the   table   into   a   hash   with   "EPS ",   "net   profit "   and   "profit   before   tax   &   items "   as   keys   and   the   number   as   their   value.   Make   sure   its   flexible   enough   to   work   with   different   quarters,   other   years   and   preferably   other   items   than   EPS   etc   i.e.   be   flexible   in   capturing   them   and   using   what   you   get   as   the   key.

Make   sure   currencies   are   handled   in   an   easy-to-update   fashion   (the   script   should   work   for   other   countries).

Please   note   that   numbers   must   be   ready   for   addition   and   multiplication   meaning   thousand-delimiters   and   currencies   must   be   removed   (of   course   the   currency   must   be   stored   in   the   hash).


"The   following   is   an   overview   of   YYYY.OQ   profits   and   forecasts...
(ALL   NUMBERS   IN   US$)
                                                            2007                                                               2008
                                                Q3                       Q4                                     Q1                           Q2
EPS                             -$0.33               $-0.51                       $0.12                   $1.85
profit   before   -82,777.5   -98,683             18,023,113         689,593,551.530
tax   &   items
net   profit             -62,000         -95,683             16,023,113         684,593,551.530


[解决办法]
什么问题?
[解决办法]
jf
[解决办法]
没看懂。楼主给个输出样例吧。

热点排行