Re: Why does this work?

From: Bart Lateur (bart.lateur_at_pandora.be)
Date: 12/29/04


Date: Wed, 29 Dec 2004 13:04:51 GMT

Joe Smith wrote:

>Brian McCauley wrote:

>> I would consider the behaviour described in this thread to be a
>> (non-serious) bug in Perl

>It is not a bug. It is a feature that was deliberately added to
>the language and is documented.

You're missing the point.

        use strict; print -force

prints:

        -force

both in 5.6.1 as in 5.8.3. For some reason, strict seems to be too
relaxed here. Maybe that is by design too, to allow for emulation of
named parameters more easily.

-- 
	Bart.


Relevant Pages

  • super simple language enhancement
    ... I don't know if this has ever been done in any language. ... Any vertical line characterwhich precede anything else on any ... good reason why this isn't done that I'm missing? ...
    (comp.lang.ruby)
  • Re: Controlling Javascript from server side
    ... but five different language implementations here. ... 'true' means that the request must be handled asynchronously. ... There is exactly *no* reason for such a thing here. ... | percent-endoded string). ...
    (comp.lang.javascript)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... overall familiarity with the tested platform, language or topic. ... The decrement happens BEFORE the assignment (simple ... Question 16 is trivial if you discount the possibility that the break ... Nor is there any reason why you couldn't use structs to implement a ...
    (comp.programming)
  • Re: Islam was spread by the sword? What about Christianity?
    ... >No wonder Jews and Muslims both feel threatened by the Christian ... Here's the Pope making an address to academics in which he specifically ... And we see threats of violence - not reason - demands that the Pope ... language) is to go along with the emotive backlash reaction that the ...
    (uk.religion.christian)
  • Re: jQuerys latest stab at competence
    ... people are js gods - the creators and implementers of the language). ... specific javascript language/standard issues. ... HTML and CSS - the advice rendered by the knowledgeable on this group ... I can buy this - but not as a good reason. ...
    (comp.lang.javascript)