you run this program and check? Still there are very basic syntax errors in your program and this program will not work. You could have found out if you have executed this code
coding for print 47#!/usr/bin/perl use strict; use warnings; print "Enter a number:"; my $input = <STDIN>; chomp $input; if ( $input == 47 ); print "number is 47\n" else print " number does'not match . enter number again"
In reply to have synax error in this coding? by virudinesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |