added POD to state that using scalar_ref or buf_ref will be and save
[urisagit/Perl-Docs.git] / experiment / carp.pl
CommitLineData
635c7876 1#!/usr/local/bin/perl
2
3
4use Carp ;
5
6$carp = shift ;
7
8( ( $carp eq 'carp' ) ? \&carp : \&croak )->( "can't open file\n ) ;
9
10print "ok\n" ;