- or download this
perl -e 'print scalar(()=<>),"\n"' filename
- or download this
perl -pe "}{$_=$." filename
- or download this
#!/your/perl/here -p
}{$_=$.
- or download this
#!/your/perl/here
use strict;
use warnings;
while (<>) {}
print "$.\n";
- or download this
#!/your/perl/here
use strict;
...
close ARGV;
}
}