Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
This week, we're updating our course layouts and descriptions. Presentation and materials always gently change over time, but just occasionally there's a need to make a step change to clear out some of the old and roll in the new. That's now happening - but over a long and complex site it's not instant and you'll see sections of the site changing up to and including 19th September.

See also [here] for status update
 
Renaming and Editing Multiple files

Posted by AMDME (AMDME), 17 April 2008
Dear editor,
I am a totally newbie to perl. I have a task that will take me 2-3 days and i believe perl script can help me solve within 1 hour
I have a file (a.xls) with the following content:
200 Edwin
201 Susan
202 Winnie
...
500 Tom

I need to create a profile for each of them with a following filenames and content format:
[200] Edwin.txt
Contents: "
Name : Edwin  
Seat Number : 200

Mr. Edwin, You are invited to proceed to Seat : 200 "

I know this might sound very simple but i am a totally newbie to programming. Will be grateful for any guidance given. Appreciate a lot for the help.



Posted by KevinAD (KevinAD), 17 April 2008
OK, what have you tried so far? Do you know any perl? Do you know the basic file handling and I/O operations of perl? Do you know basic data munging techniques? Anything?

Posted by AMDME (AMDME), 18 April 2008
Hi Kevin,
I dont know anything about perl at his moment. But after i go through some of the forum here, i knwo perl will be very helpful for me not just at this moment, but in future as well. I plan to learn it and i will be very grateful if you can help me at this point and i will start my learning from there. Thanks

Posted by KevinAD (KevinAD), 18 April 2008
I suggest you start here:

http://www.perl.org/books/beginning-perl/

When you get some basic code written I will help.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho