[Bioperl-l] bug #1396: *.PL to *.pod conversion is broken,
makebailsout
Hilmar Lapp
hlapp at gnf.org
Thu Mar 6 11:35:27 EST 2003
This does work with for me on Mac OSX, perl 5.6.0. Note though that if
you comment out the definition of @array I get the exact same error
that I got initially.
Also note that in the .PL files the label is in double quotes, not
single quotes.
-hilmar
On Thursday, March 6, 2003, at 11:03 AM, Allen Day wrote:
>> I'm not sure how a non-interpolated HERE-document looks, but as a
>> matter of fact biodesign.PL and biodatabases.PL were all one document,
>> and variables were interpolated all over the place.
>
> i've attached an example below of how to do interpolated and
> non-interpolated heredocs (note the use of single quotes), and below
> that
> the output of the program.
>
> ... but maybe this isn't what we want to do if Aaron has an easier
> solution
>
> -allen
>
> ----
>
> #!/usr/bin/perl
>
> use strict;
>
> my $scalar = 'scalar';
> my @array = ('ary1','ary2','ary3');
> my %hash = (h1 => 1, h2 => 2, h3 => 3);
>
> print <<HERE
> interpolated heredoc:
> $scalar
> @array
> %hash
> ----
> HERE
> ;
>
> print <<'HERE'
> non-interpolated heredoc:
> $scalar
> @array
> %hash
> HERE
> ;
>
> ----
>
> allenday at nozzle:/home1/allenday> perl heredoc.pl
> interpolated heredoc:
> scalar
> ary1 ary2 ary3
> %hash
> ----
> non-interpolated heredoc:
> $scalar
> @array
> %hash
> allenday at nozzle:/home1/allenday>
>
>
>
--
-------------------------------------------------------------
Hilmar Lapp email: lapp at gnf.org
GNF, San Diego, Ca. 92121 phone: +1-858-812-1757
-------------------------------------------------------------
More information about the Bioperl-l
mailing list