in reply to Re: Re: Why do I need -w in a cgi script
in thread Why do I need -w in a cgi script
I work in a Windows and Unix environment. One of the most simple yet useful things I've ever found on perlmonks was a slightly different version for stripping the ^M's.
I just ssh into the server and edit the files directly there, but for a more production-oriented environment I can see why some might not favor that approach, as a mis-edit could leave the script broken for a couple of minutes. In my situation this is not a big deal. Of course, if it were, I could have two directories on the server, one for development and one for production, which is probably what I'd do. Or have two servers.
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
|
|---|