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

Re: [FWP] Is this fun? What's going on?



[Thu, Aug 05, 1999 at 10:03:18PM -0400] Bill Jones:
> foreach (@INC) {
>    print () . "\n";  # Ignores the LF...
> }
> 
> # Also tried the . and/or ,  both to no avail...

The answer is held within -w.

> perl -we '$_ = "Foo\n"; print () . ""'
print (...) interpreted as function at -e line 1.
Useless use of concatenation in void context at -e line 1.
Foo
> perl -we '$_ = "Foo\n"; print () , ""'
print (...) interpreted as function at -e line 1.
Useless use of a constant in void context at -e line 1.
Foo
>

> ???

HTH,

> -Sneex-  :]

--Matthew

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe