programming-examples/perl/SystemFunction/Using die to ouput error message.pl
2019-11-15 12:59:38 +01:00

8 lines
124 B
Perl

#!/usr/bin/perl -w
use strict;
print "enter a string to pass to die: ";
chomp(my $string = <STDIN>);
die($string);