http://qs1969.pair.com?node_id=447683

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I have a doubt, I am posting my code here.
#!/usr/bin/perl $type = $ARGV[0]; $argument = $ARGV[1]; if( $type eq 'job' || $type eq 'member' || $type eq 'file' ) { print "yes..."; } else { print "The parameters for this program are as follows: [job/member/fil +e] [jobnumber/membernumber/filename]"; die; }

or in else condition shall I use
else { print "The parameters for this program are as follows: [job/member/fil +e] [jobnumber/membernumber/filename]"; exit; }

Which one is the best way? (Memory management point of view).
Regards,
John

Edited by Arunbear: Changed title from 'Provide your valuable suggestion', as per Monastery guidelines