Hi Brett: I'm using Perl to set a password and a coworker of mine is using VB to call my program. The problem is that the person who will end op running the VB program does not have access to the directory where passwords are stored. So, I figured, I'll use Perl to do the job, since I can easily impersonate a user with the AdminMisc module.
What we want is for the VB program to set a variable based on the results of the Perl program. Something like this (using Perl syntax): $VBtextstring = "RunPerlToGetNewPassword.exe"; Any ideas? Dean Theophilou Genisar P.S. Is that a REAL state law in Idaho? -----Original Message----- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 2:28 PM To: Dean Theophilou Cc: Perl_beginner (E-mail) Subject: Re: Returning a text string On Mon, 3 Dec 2001, Dean Theophilou wrote: > I would like to exit a perl program such that upon exiting, it will return a > text string to the calling program. How would I go about doing this? > > exit $SomeTextString; > > doesn't work, since "exit" evaluates the above scalar as an integer. Thank you > in advance. Return a text-string in what manner? If the calling program is picking something out of STDIN, then you will want to use die: die "Error doing something" if $some_error_condition; -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Idaho state law makes it illegal for a man to give his sweetheart a box of candy weighing less than fifty pounds. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]