in reply to Expire date of domain

perl -MNet::Domain::ExpireDate -e '$x=expire_date('abc.com');print $x;' ""Why its not working"
You have single quotes both as script delimiter and inside the script:
perl -e 'print ('acb.com');' -> abccom
You are calling "expire_date" with parameter abccom.