"R. Joseph Newton" wrote:
> 
> Kevin Pfeiffer wrote:
> 
> > I'm looking at HTML::TokeParser. It expects a scalar with a filename or a
> > reference to a scalar containing the data to parse.
> >
> > This works fine:
> >
> > my $html;
> > if (@ARGV) {                              # get filename for TokeParser
> >   $html = shift;
> > } else {
> >   my @html = <>;
> 
> Where is the diamond operator here supposed to be filled from?

<> treats the elements of @ARGV as file names and opens them in order
and returns their contents but if @ARGV is empty it returns the contents
of STDIN.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to