aboutsummaryrefslogtreecommitdiff
path: root/challenge-028/prajith-p/ch-1.pl
blob: 93442ec106ab5a239483c5aa5a28a10bf369b798 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl

my $file = $ARGV[0];

my $r = -r $file  ? (
        -B $file  ? 
          "The file content is binary" 
        : "The file content is ascii" ) 
        : "Could not open file: $file";
print $r;