Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

How to implement pattern nmatching and then inserting data in a XLS file

by Anonymous Monk
on Oct 05, 2012 at 09:16 UTC ( #997415=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Can you guys , let me know that how to find any string from a xls file?

Once the pattern is found, then only rewrite that string by some other string

I'm an expertise in text file modifications, but I'm not sure in case of XLS

Comment on How to implement pattern nmatching and then inserting data in a XLS file
Re: How to implement pattern nmatching and then inserting data in a XLS file
by grizzley (Chaplain) on Oct 05, 2012 at 10:11 UTC
    You can convert .xls to .csv format and then do simple text search (and replace) in text file.
      and then I will again convert it into xls, don't you think it will be too much time consuming??

        Yes, I agree. That's just one of solutions and I check Excel modules on CPAN, but until now have found only modules like Excel::Writer for creation of Excel worksheets and without simple 'find and replace' function.

        I guess the best approach for you would be to use Win32::OLE module, example with using 'find' function is presented here Re: Win32::OLE Excel search and replace commas (adapting it to find & replace should not be hard).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997415]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-09-30 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (383 votes), past polls