in reply to Re^2: On being 'critical'
in thread On being 'critical'
I completely agree with you that the 2-arg open is fine and even prefereable in this case.
Did you know the P5P refuse to fix the magical open for <>, it uses 2 argument open internally,
I haven't made up my mind on this yet, but what do you see wrong with that?
My current thinking is that the magic open only comes into play when accepting arguments from the command line. And if the user decides to type '|rm -rf' as an argument to a perl script, they could just as easily type 'rm -rf' at that same command line.
'Fixing' it, to use the 3-arg variant would entail throwing away a bunch of useful behaviours that the user can invoke from the command line.
Are you aware of any situation where the user could do something by supplying bad args to a magical open that they could not more easily do by simply typing them straight into the command line?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: On being 'critical'
by ikegami (Patriarch) on Dec 15, 2006 at 00:26 UTC | |
by BrowserUk (Patriarch) on Dec 15, 2006 at 01:21 UTC | |
by pjf (Curate) on Dec 17, 2006 at 06:55 UTC | |
by Sartak (Hermit) on Dec 15, 2006 at 07:22 UTC | |
by BrowserUk (Patriarch) on Dec 15, 2006 at 07:58 UTC | |
by sauoq (Abbot) on Dec 15, 2006 at 20:29 UTC | |
by Sartak (Hermit) on Dec 15, 2006 at 08:30 UTC | |
| |
|
Re^4: On being 'critical'
by bart (Canon) on Dec 15, 2006 at 18:51 UTC | |
|
Re^4: On being 'critical'
by diotalevi (Canon) on Dec 15, 2006 at 19:30 UTC |