develooper Front page | perl.perl5.porters | Postings from December 2000

Re: =code language ... =back in POD

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
December 12, 2000 11:15
Subject:
Re: =code language ... =back in POD
Message ID:
20001212131501.B8941@chaos.wustl.edu
On Tue, Dec 12, 2000 at 01:02:09PM -0600, Jarkko Hietaniemi wrote:
> Nice idea in principle but the real world is kinda complex.
> 
> > =code perl
> 
> Which Perl?  I have several different versions installed.  With which
> options?  Environment variables? 
>
> > =code C
> >         printf("Hello World\n");
> 
> If I have a hello.c with those contents it will most certainly not
> compile... and if compiled, with which compiler?  Compiler options?
> Etc.
> 
> > =code shell
> 
> Which shell?  sh? csh? bash? tcsh? zsh? ksh?  Etc.

Also, no matter what the language, yet another problem quickly becomes
apparent if you really start doing something like the suggestion (I
one actually did, ahem...)  The suggested model assumes each of the
code snippets are both self-contained and correct.  The first
assumption will trip us if a later snippet requires something from
previous snippets to compile.  The second assumption: how does one
demonstrate *illegal* code if the requirement is that each code
snippet should compile okay? (whatever that means for shells,
I don't know)

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About