in reply to Return a string to Unix Script
In a Perl script called, say, perl_test:
#!/usr/bin/perl -w use strict; print 'here is an output string';
In a shell script called, say, call_perl:
#!/bin/sh output = `perl_test` echo $output
Does that help?
--Perl Training in the UK <http://www.iterative-software.com>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Return a string to Unix Script
by GroundZero (Initiate) on Sep 06, 2001 at 04:26 UTC | |
by busunsl (Vicar) on Sep 06, 2001 at 10:21 UTC |