File: 50_first.pl

package info (click to toggle)
plsense 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,012 kB
  • sloc: perl: 9,767; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 228 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use List::Util qw{ first };
use IO::File;

my $io = IO::File->new();

my @arrio;
push @arrio, $io;

my $fst = first { $_ && $_->isa("IO::File") } @arrio;
# astart first
#$fst->
# aend include: ioctl seek fcntl