Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by temporal (Pilgrim)
on Jun 08, 2012 at 14:21 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://975179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found