programming-examples/perl/SystemFunction/Using die to ouput error message.pl

8 lines
124 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
print "enter a string to pass to die: ";
chomp(my $string = <STDIN>);
die($string);