Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I seem to recall something similar in Fortran when I used it many years ago (however it may well have have been 3rd party library).</p> <p>As for other options in Perl have a look at <a href="http://search.cpan.org/perldoc/Perl6::Form" rel="nofollow noreferrer"><code>Perl6::Form</code></a>.</p> <p>The <code>form</code> function replaces <a href="http://perldoc.perl.org/functions/format.html" rel="nofollow noreferrer"><code>format</code></a> in Perl6. Damian Conway in "<a href="http://google.com/search?btnI=&amp;q=%22Perl+Best+Practices%22" rel="nofollow noreferrer">Perl Best Practices</a>" recommends using <a href="http://search.cpan.org/perldoc/Perl6::Form" rel="nofollow noreferrer"><code>Perl6::Form</code></a> with Perl5 citing the following issues with <a href="http://perldoc.perl.org/perlform.html" rel="nofollow noreferrer"><code>format</code></a>....</p> <ul> <li>statically defined</li> <li>rely on global variables for config &amp; pkg vars for data they format on</li> <li>uses named filehandles (only)</li> <li>not recursive or re-entrant</li> </ul> <p>Here is a <a href="http://search.cpan.org/perldoc/Perl6::Form" rel="nofollow noreferrer"><code>Perl6::Form</code></a> variation on the Ruby example by Robert Gamble....</p> <pre><code>use Perl6::Form; my ( $month, $day, $year ) = qw'Sep 18 2001'; my ( $num, $numb, $location, $toe_size ); for ( "Market", "Home", "Eating Roast Beef", "Having None", "On the way home" ) { push @$numb, ++$num; push @$location, $_; push @$toe_size, $num * 3.5; } print form ' Piggy Locations for {&gt;&gt;&gt;}{&gt;&gt;}, {&lt;&lt;&lt;&lt;}', $month, $day, $year , "", ' Number: location toe size', ' --------------------------------------', '{]}) {[[[[[[[[[[[[[[[} {].0} ', $numb, $location, $toe_size; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload