Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: C vs perl

by Anonymous Monk
on Apr 28, 2002 at 10:43 UTC ( [id://162646]=note: print w/replies, xml ) Need Help??


in reply to C vs perl

I know nothing about C, but a little Perl. The first thing I noticed was that you capture \r\n but don't use $1. Besides that I'd like to remove some unnecessary code.

sub MakePtag { my ($s) = @_; $s =~ s!\r\n!</p><p>!g; return "<p>$s</p>"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found