🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #5075

Re: perl question about > in file name

#5075
From: Allan Frankel
Date: Tue, 06 Jun 1989 00:59
19 lines
956 bytes
perl is quite happy to work with a file named "<a":

	open(A,"><a");
	print A "Heigh, Their!\n";
	close(A);

	open(B,"<<a");
	$line = <B>;
	print $line;

To write to ">a" it would presumably be necessary to delete (or truncate)
it first and then open ">>>a".



Allan Frankel,  frankel@megatek or:		  (619) 455-5590 x2541
    		       ucsd!				Megatek Corp.
	      hplabs!hp-sdd!megatek!frankel		9645 Scranton Rd.
	        ames|scubed!				San Diego, CA  92121
Technical Details
Message-ID: <568@megatek.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!megatek!corona!frankel
References: <123@zip.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!megatek!corona!frankel
From: frankel@corona.megatek.uucp (Allan Frankel)
Newsgroups: comp.sources.d
Subject: Re: perl question about > in file name
Keywords: perl
Message-ID: <568@megatek.UUCP>
Date: 6 Jun 89 00:59:40 GMT
References: <123@zip.eecs.umich.edu>
Sender: news@megatek.UUCP
Reply-To: frankel@corona.UUCP (Allan Frankel)
Organization: Megatek Corp.
Lines: 19