Need help on Perl

  1. Write a perl Script to take any date value as input and find out and print how many days, months and year are remaining for that date.

  2. Here Is my code:

!/usr/bin/perl

use strict;
use warnings;
use feature 'say';

use Time::Piece;

print "date:\n";
chomp(my $date = <STDIN>);
print "mon:\n";
chomp(my $mon = <STDIN>);
print "year:\n";
chomp(my $year = <STDIN>);

my $tp = Time::Piece->strptime("$year-$mon-$date", '%Y-%m-%d');

say $tp->fullday;
  1. My code's Output:

  2. University Name: University Of Development Alternative

I need help with college homework assignment but I have to show output like date, year and month in same line then what will be the code?

An example:

#!/usr/bin/perl

use strict;
use warnings;
use Time::Piece;

my $tp=localtime;
print $tp->strftime("%d %b %Y");