in reply to Re: I'm looking for a one-liner filter 'twixt two regexes
in thread I'm looking for a one-liner filter 'twixt two regexes
cmd.exe quoting rules are almost simple. There is only one kind of quote, the double quote. So
works. I'm not sure how you escape a double quote on the command line of cmd.exe, so I use qq(\n) whenever I need to embed a newline...perl -ne "print if /start/ .. /end/" *.html
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: I'm looking for a one-liner filter 'twixt two regexes
by msemtd (Scribe) on Sep 06, 2002 at 12:44 UTC | |
by msemtd (Scribe) on Sep 13, 2002 at 08:22 UTC |