Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: 'use strict' is not Perl

by Anonymous Monk
on May 10, 2002 at 14:58 UTC ( #165658=note: print w/replies, xml ) Need Help??

in reply to Re: 'use strict' is not Perl
in thread 'use strict' is not Perl

the PHP equivalent of 'use strict' (at least with respect to variable declaration) is setting the 'register_globals' configuration option to false.

Great steaming hairy bollocks! All that does is stop variables that are passed by GET or POST from being declared as globals.

Replies are listed 'Best First'.
Re: Re: Re: 'use strict' is not Perl
by ignatz (Vicar) on May 10, 2002 at 16:46 UTC
    EXACTLY, thus not polluting everything with variables from all over the damn place. The goal (strict) is the same, even though the web centric context of PHP is different.

    It's going to be hard for them to get out of their years of bad habits. Maybe PHP 5 will solve some of this, but I doubt it.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165658]
erix looks up Sheldon ...
[erix]: ah. well, that must feel nice, no? ;)
[erix]: not the best way to make friends, though (I suppose)
LanX Fun with Flags anyone?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-03-22 18:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.