aboutsummaryrefslogtreecommitdiff
path: root/challenge-028/markus-holzer/perl6/ch-1.p6
blob: 6bcbd6ea5a406bd956e7f0636875c598a3a6a2bd (plain)
1
2
3
4
5
6
7
# For windows, see the README

sub MAIN( $file )
{
    my $magic = run( "file", $file, :out ).out.slurp;
    say "The file content is ", ($magic ~~ / \s text \, / ?? "ascii" !! "binary");
}