#!/usr/bin/perl use strict; use warnings; package Bar; sub read_it { my $fh = shift; print while <$fh>; } package Foo; Bar::read_it \*DATA; __DATA__ one two three four
Abigail
In reply to Re: How can read form __DATA__ via filehandler
by Abigail-II
in thread How can read form __DATA__ via filehandler
by filipe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |