[comp.sources.d] Filenames with leading spaces in Perl

merlyn@agora.UUCP (Randal L. Schwartz) (06/12/89)

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