Re: Perl 5.8.6 bug in open()?



On Tue, Oct 30, 2007 at 07:42:02AM -0700, Paul Lalli wrote:

It's known, but I don't know that it qualifies as a bug. When you
use the two argument form of open, Perl is looking for both the
filename and mode, concatenated together, possibly with spaces
separating them. Since your file ends in a space, you can't use this
shortcut. In reality, you should NEVER use this short cut.

That's an awfully long time.

The functionality is there for a reason, and sometimes it's appropriate
to use it. Admittedly, that's not very often, but it's more often than
never.

--
Paul Johnson - paul@xxxxxxxx
http://www.pjcj.net
.



Relevant Pages

  • Re: Perl 5.8.6 bug in open()?
    ... filename and mode, concatenated together, possibly with spaces ... separating them. ... It's there to make modern Perl compatable with old Perls. ... justifiable reason I can think of to use it is to allow your user to ...
    (perl.beginners)
  • Re: writing get_script()
    ... the Grave Hand of nick_keighley_nospam@xxxxxxxxxxx Did ... my $filename = 'text43.txt'; ... which puts perl in paragraph mode. ...
    (comp.lang.c)
  • Re: "system" with [ ] in filename
    ... Do the have a special meaning to Perl in this context? ... Or should I look for the problem in the way Windows handles the ... Its mostly looking in the current dir (where the script ... half-baked attempt to create a new version of the same filename - ...
    (comp.lang.perl.misc)
  • Re: perl: what is the variable holding the executing script file name
    ... > What is the PERL variable which holds the filename ... > of the currently executing script? ... Executable Name: perl ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • malformated substitution attempt
    ... Perl, v5.8.3 Linux ... # It does not displace the X with the filename. ... print $string. ... I do find simple substitution aplenty ...
    (comp.lang.perl.misc)