programming-examples/perl/SystemFunction/Uses the system function to clear the screen.pl

10 lines
188 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/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" );