🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #65

Filenames with leading spaces in Perl (was Re: perl question about > in file name)

#65
From: Randal L. Schwartz
Date: Mon, 12 Jun 1989 01:03
21 lines
1471 bytes
In article <1537@agora.UUCP> batie@agora.UUCP (Alan Batie) writes:
| From article <5058@jpl-devvax.JPL.NASA.GOV>, by lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall):
| > Actually, it suffices to put a space after the first >, as in "> >a".
| > Of course, this means you can't easily create a filename starting with spaces,
| > but why would you want to do that anyway?
| 
| Although I agree with Larry in this case, the question "Why would you want to
| do that anyway?" is usually followed by someone finding a good reason to do
| so, and I consider it a very dangerous question.

Well, beating them to the punch, you *can* create a filename beginning
with a space the hard way, with:

   open(F,"> ./ foo") || die;

so there.

Just another satisfied Perl hacker (thanks larry!),
-- Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095
quality software, documentation, and training at affordable rates
<merlyn@agora.hf.intel.com>  ...!uunet!agora.hf.intel.com!merlyn
Technical Details
Message-ID: <1544@agora.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr!tektronix!psueea!parsely!agora!merlyn
References: <5058@jpl-devvax.JPL.NASA.GOV> <1537@agora.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr!tektronix!psueea!parsely!agora!merlyn
From: merlyn@agora.UUCP (Randal L. Schwartz)
Newsgroups: comp.sources.d
Subject: Filenames with leading spaces in Perl (was Re: perl question about > in file name)
Message-ID: <1544@agora.UUCP>
Date: 12 Jun 89 01:03:19 GMT
References: <5058@jpl-devvax.JPL.NASA.GOV> <1537@agora.UUCP>
Organization: Organization?  You've got to be kidding!
Lines: 21