[Cocoadialog-users] perl and bash scripts
Status: Beta
Brought to you by:
sporkstorms
From: Heather E. <Hea...@sh...> - 2005-02-11 23:42:17
|
Hi, I don't know how regularly this list is monitored, but thought I would try anyway... I am using CocoaDialog to GUI-up some unix-based procedures. I am hoping to use several of the example functions in one 'master script'. Specifically I am using msgboxes and the perl input text box. I'm a novice perl user and I'm wondering if anyone can give me any tips (or confirm it's even possible) to pass variable values back UP from my perl input text- box 'subroutine' to the parent bash script that called it. I have tried to very crudely modify an ENV variable in perl and read it from the bash script, but the bash script is not reading the modified value. I have been calling the perl script command-line style from my bash script as follow: perl myscript.pl I would suppose there is a better way of using a perl subroutine, but as a novice perl user (read 'never used perl before needing the perl textbox script') I don't know how to do this (I'll be buying a perl book this weeke nd to ameliorate this situation) I don't think I can simply use a return value from a perl subroutine, because I need to pass longer values, specifically the string from the text input box. If anyone has a suggestion of how this could be accomplished, your advice would be MUCH appreciated. Thanks in advance, Heather |