The stupid question is the question not asked | |
PerlMonks |
Re^2: reg perl substitutionby mwah (Hermit) |
on Nov 09, 2007 at 19:45 UTC ( [id://649983]=note: print w/replies, xml ) | Need Help?? |
think i have to use tie::file.I went thru the perl doc ..but its not clear how to use it .could you give me a simple eg how to use it for Tie::File, you have look at the file's lines as if they would be like "array elements", - by changing them you'd change the file. What did you try so far - what didn't work? BTW, this problem looks rather simple, so you could employ your own file handling - sth. like this:
This would do basically the same as the 'one-liner' in another example already given. Regards mwa
In Section
Seekers of Perl Wisdom
|
|