Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Beautiful Perl

by cog (Parson)
on Mar 26, 2005 at 20:45 UTC ( [id://442555]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Beautiful Perl
in thread Beautiful Perl

Well, if you ask me, it's a lot different to have

if($var=~/hello/){$first="hello";$second="world"}

than to have

if ( $var =~ /hello/ ) { $first="hello"; $second="world" }

or even

if ( $var =~ /hello/ ) { $first = "hello"; $second = "world" }

So no, it is not a futile exercise!

I agree with everything you say, apart from "this is a futile exercise".

It's not a matter of finding the most beautiful code, because we all know opinions differ. It's just a matter of finding code that is reasonably well written to be understood with... well, at least with not so many problems as with the first example I showed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found