#!/usr/bin/perl -w

# Copyright 2010, 2019 Kevin Ryde

# This file is part of Filter-gunzip.
#
# Filter-gunzip is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any later
# version.
#
# Filter-gunzip is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with Filter-gunzip.  If not, see <http://www.gnu.org/licenses/>.

use strict;
use warnings;
use Devel::Peek;
use FindBin;
BEGIN {$|=1}

BEGIN {
  print "tell() ",tell(\*DATA),"\n";
  print "tell() ",tell(\*DATA),"\n";
}

use lib "$FindBin::Bin/lib";
use MyFilterShowLine count => 5;
{
  my $str = <<'HERE';
here document string with crlf
and another crlf
HERE
  print "the here document:\n";
  Devel::Peek::Dump($str);
  print $str,"\n";
}

{
  my $str = <DATA>;
  print "the data line:\n";
  Devel::Peek::Dump($str);
  print $str;
}

__DATA__
a line with crlf
another line with crlf
