You're treating the contents of $row and $col as a sprintf format sequence. Change

printf " %s At ($row, $col) the row is %s and the column is %s for EUR + & NAM \n", $feedback_value, $my_row, $my_column;

to

printf " %s At (%s, %s) the row is %s and the column is %s for EUR & N +AM \n", $feedback_value, $row, $col, $my_row, $my_column;

If you wanted to to interpolate the values into the format string because you were using the same format string over and over again, you'd need to convert instances of "%" to "%%".

my $power = '95%'; (my $escaped_power = $power) =~ s/%/%%/g; my $fmt = "sample: %-4s result: %5.2f power: $escaped_power\n"; for (0..$#data) { printf($fmt, $_, $data[$_]); }

In reply to Re: %p issue on perl script by ikegami
in thread %p issue on perl script by Sathish

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.