Program Code:
#!/Perl/bin/perl
print("Enter a sentence to convert into lower form\n");
while($input=<STDIN>)
{
$input=~ tr/A-Z/a-z/;
print($input);
}
Output:
#!/Perl/bin/perl
print("Enter a sentence to convert into lower form\n");
while($input=<STDIN>)
{
$input=~ tr/A-Z/a-z/;
print($input);
}
Output:
0 comments:
Post a Comment