Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
Chad Perrin wrote: On Wed, Jul 05, 2006 at 11:31:55AM -0500, Kevin Viel wrote: Mr. Shawn H. Corey wrote: Kevin Viel wrote: I call a perl script from SAS using a pipe. The file on which the script acts changes. Is there a way to provide the file name to the script using STDIN on the comma

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Chad Perrin
On Wed, Jul 05, 2006 at 11:31:55AM -0500, Kevin Viel wrote: > Mr. Shawn H. Corey wrote: > >Kevin Viel wrote: > > > >>I call a perl script from SAS using a pipe. The file on which the > >>script acts changes. Is there a way to provide the file name to the > >>script using STDIN on the command line

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Mr. Shawn H. Corey
Kevin Viel wrote: > That should work, but I cannot use the keyboard to provide the STDIN. > Instead I was hoping for something like: > > filename ABI pipe "perl C:/base.ps >file.ab1" ; >^ > > Thanks, > > Kevin > > How about? my $filename = <>; c

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
Mr. Shawn H. Corey wrote: Kevin Viel wrote: I call a perl script from SAS using a pipe. The file on which the script acts changes. Is there a way to provide the file name to the script using STDIN on the command line? The SAS call looks like: filename ABI pipe "perl C:/base.ps" ; For now,

Re: Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Mr. Shawn H. Corey
Kevin Viel wrote: > I call a perl script from SAS using a pipe. The file on which the > script acts changes. Is there a way to provide the file name to the > script using STDIN on the command line? The SAS call looks like: > > filename ABI pipe "perl C:/base.ps" ; > > For now, I altered the sc

Providing STDIN to a PIPEd call to perl

2006-07-05 Thread Kevin Viel
I call a perl script from SAS using a pipe. The file on which the script acts changes. Is there a way to provide the file name to the script using STDIN on the command line? The SAS call looks like: filename ABI pipe "perl C:/base.ps" ; For now, I altered the script to read a text file cont