Welcome to the Monastery !

Please read Markup in the Monastery and use <code> tags when you post code - otherwise, your post becomes mangled by html interpretation.

Also, read How do I post a question effectively?. You did not indicate what problem you were having, or what result you were expecting.

Use better variable names, like $name, $pay, $hours instead of $channeln.

Do not use the obsolete "switch" module.

Here is what I can make of your code - not sure what calculation you were trying:

use strict; use warnings; use diagnostics; use feature "say"; use feature "switch"; use v5.22.1; say "What is your name?"; my $channel1 =<STDIN>; say "How many hours did you work?"; my $channel2 =<STDIN>; say "What is your pay?"; my $channel3 = <STDIN>; chomp for ($channel1,$channel2,$channel3); say $channel1; say "Check Amount = ", (40*$channel3)+(($channel2-40)*$channel3*2);
Output:
e$ perl test-channel.pl What is your name? rrr How many hours did you work? 44 What is your pay? 10 rrr Check Amount = 480

                Memory fault   --   brain fried


In reply to Re: Help with Perl Project please by NetWallah
in thread Help with Perl Project please by Draggy

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.