Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^9: perl script to search and replace comment in .aspx file

by temporal (Pilgrim)
on Jun 08, 2012 at 14:21 UTC ( #975179=note: print w/ replies, xml ) Need Help??


in reply to Re^8: perl script to search and replace comment in .aspx file
in thread perl script to search and replace comment in .aspx file

Oops. You will need to undef the input record seperator otherwise you will stop reading the file at the first blank line. Silly me.

Works for me for all cases, including the one you posted =)

Anyway, I think we can all agree that you have more than enough info on this node to be able to put together the code you're looking for. Good luck!

Strange things are afoot at the Circle-K.


Comment on Re^9: perl script to search and replace comment in .aspx file
Download Code
Re^10: perl script to search and replace comment in .aspx file
by hector89 (Novice) on Jun 08, 2012 at 14:27 UTC

    sorry i checked it for all cases but ity's true it's not working when it founds anyblankk line . so how to prevent that.really being first perl pro it seems tough to me but through help of you guys i started learning basics of perl.thanks.:)

Re^10: perl script to search and replace comment in .aspx file
by hector89 (Novice) on Jun 08, 2012 at 14:37 UTC

    isolved the problem .now it rwead the blank line but new problem is if there is a spave between two wors in same line after first space itself it discards all like: <script type>..it only reading <script and discrds type>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-08-23 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls