I have written a perl script that concatenates files together. Pass arguements to the script on the command line. This is the way it goes:
$inputdir = <STDIN>;
my question is can you have perl to do this instead:
$inputdir = $1
I know in bourne and korn you can. The reason why I ask is because we use appworx; It's a schduler that you can set prompts in, which will let you enter data like from the command line. It (appworx) will work if you have a script that will take values from $1....$9 and set these to variables. If I use <STDIN> it's not happening. I know this does really seem to be a perl problem but if there is a way to get standard input other than using <STDIN> it would be a quick easy fix for me.
Thanks
Jesse
$inputdir = <STDIN>;
my question is can you have perl to do this instead:
$inputdir = $1
I know in bourne and korn you can. The reason why I ask is because we use appworx; It's a schduler that you can set prompts in, which will let you enter data like from the command line. It (appworx) will work if you have a script that will take values from $1....$9 and set these to variables. If I use <STDIN> it's not happening. I know this does really seem to be a perl problem but if there is a way to get standard input other than using <STDIN> it would be a quick easy fix for me.
Thanks
Jesse