On Feb 1, [EMAIL PROTECTED] said:

>Why does the following not work for me?
>
>format NAME =
>TEST
>----
>@<<<<<<<<<<<<<<<
>$test
>..
> 
>$test = "asdfjkl;";
> 
>select(NAME);
>write();

That tries writing to the filehandle NAME, too.  Instead of select(NAME),
do:

  $~ = "NAME";

That will set STDOUT's default format name to "NAME".

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


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

Reply via email to