Hello I have written a perl code using nested if statements but i want to use switch function insted of nestedif
#!/usr/bin/perl
print "Enter the Integers";
my $Integers =<>;
my @numbers =split(',',$Integers);
$numofint =scalar(@numbers );
@oldarray=0;
foreach my $num (@numbers)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.