[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] Syntax Question



Richard Gordon wrote:
> 

>         if (!($dirs[$list] = [td]/temp/ || $dirs[$list] = [td]/images/))    {


> There may still be some other problems with the above, but the part I
> do not understand at all is the [td] as used in the if() statement. Perl
> complains that this is a bareword that may conflict with future reserved words,
> but I am more concerned that I just don't grasp what this is in any case.
> 
> I do know that there were some problems relating to a lack of quoting and other
> stuff in some of the other program listings, but I assumed those were proofing
> errors while this looks like High Martian to me. Any thoughts?

Get a better book.

That [td] is some sort of typesetting code for 'tilde', aka '~'.
Apparently the typesetting codes were not properly translated
when the book was printed.


if (!($dirs[$list] =~ /temp/ || $dirs[$list] =~ /images/))    {


Ronald

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org