Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Beautiful Perl

by ambs (Pilgrim)
on Mar 26, 2005 at 15:16 UTC ( #442497=note: print w/replies, xml ) Need Help??

in reply to Beautiful Perl

You can't say "this code is beautiful". People can agree or not. There is not a concensus at all.

Perl is a very flexive language. The main reason is because Larry studied linguistics. That means he know Natural language is flexible which makes texts easier (or not) to read. The truth is that two different people write the same idea on Natural language in two different ways. Perl is the same.

Some example of linguistics constructions:

 open FILE, ">foo" or die "Can't open file foo\n";

 $a = 1 unless $a;

 print $a foreach @b;

Hope this helps you out.

Alberto Simões

Replies are listed 'Best First'.
Re^2: Beautiful Perl
by Tanktalus (Canon) on Mar 26, 2005 at 15:32 UTC

    Actually ... you can say "this code is beautiful". You just (usually) cannot say it objectively. ;-) And, there is a lot of consensus on a lot of issues. Most of perlstyle is likely agreed to by most perl developers who have enough experience to tell the difference between readable ... and unmaintainable. By experience, I simply mean having to maintain code that is more than 6-12 months old, even if it is their own code.

Re^2: Beautiful Perl
by tlm (Prior) on Mar 26, 2005 at 15:32 UTC

    You can't say "this code is beautiful". People can agree or not. There is not a concensus at all.

    Yes, but this is true of practically any statement about aesthetics. Still, it doesn't stop people from building and visiting museums.

    the lowliest monk

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2021-10-27 14:09 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (93 votes). Check out past polls.