A
Andreas Kienle
Hi,
I have the following problem: I want to create a perl script which
will be used by several other scripts. The perl script should return a
string and print something else to STDOUT.
For example it should read a line from a file and return this to the
calling script but printing "Read from file 'bla'" to STDOUT
When I use system() to call the script then the printing to the screen
works as usual but the main program cannot access the retrieved
string. On the other hand when I use `` I can save the result in a
variable but cannot print to the screen from the "subscript".
I hope you understand what I mean
Thanks for any help!
- Andreas
I have the following problem: I want to create a perl script which
will be used by several other scripts. The perl script should return a
string and print something else to STDOUT.
For example it should read a line from a file and return this to the
calling script but printing "Read from file 'bla'" to STDOUT
When I use system() to call the script then the printing to the screen
works as usual but the main program cannot access the retrieved
string. On the other hand when I use `` I can save the result in a
variable but cannot print to the screen from the "subscript".
I hope you understand what I mean
Thanks for any help!
- Andreas