programming-examples/perl/SystemFunction/Uses the system function to clear the screen.pl
2019-11-15 12:59:38 +01:00

10 lines
188 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
print( "What file would you like to create? " );
chomp( my $file = <STDIN> );
( $^O =~ /Win/ ) ? system( "cls" ) : system( "clear" );