my $ini_path = qw( /home/bob/Documents/html_template_data/3.values.ini + ); ... my $input_directory = qw( /home/bob/Documents/meditations/castaways/translate/data );

You are assigning a list to a scalar variable. This only works because there is only one element in the list. The correct way is to assign a scalar value to a scalar variable:

my $ini_path = '/home/bob/Documents/html_template_data/3.values.ini';

Or a list to a list:

my ( $ini_path ) = qw( /home/bob/Documents/html_template_data/3.values +.ini );
if ( $prompt1 eq ( "y" | "Y" ) ) { show_lang_codes(); }
$ perl -le'use Data::Dumper; my $x = ( "y" | "Y" ); print Dumper $x' $VAR1 = "y";

That code is only comparing $prompt1 to a lower case "y" but not to an upper case "Y". If you want to compare to both lower and upper case you can do the following:

if ( $prompt1 eq "y" || $prompt1 eq "Y" ) { show_lang_codes(); }

Or:

if ( lc $prompt1 eq "y" ) { show_lang_codes(); }

Or:

if ( $prompt1 =~ /\Ay\z/i ) { show_lang_codes(); }

In reply to Re: chunking up texts correctly for online translation by jwkrahn
in thread chunking up texts correctly for online translation by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.