Re: Removing line return from variable - RESOLVED

2007-10-18 Thread unix
On Thu, October 18, 2007 2:47 pm, Chas. Owens wrote: > On 10/18/07, Paul <[EMAIL PROTECTED]> wrote: > snip >> The output is: >> text >> 0 > snip >> The function is like this: >> >> my$variable = (system "/usr/sfw/bin/openssl rsautl -decrypt -inkey >> private.pem -in cryptedfile") > s

Re: Removing line return from variable

2007-10-18 Thread Chas. Owens
On 10/18/07, Paul <[EMAIL PROTECTED]> wrote: snip > The output is: > text > 0 snip > The function is like this: > > my$variable = (system "/usr/sfw/bin/openssl rsautl -decrypt -inkey > private.pem -in cryptedfile") snip There is no way that $variable will have the data you want. Th

Re: Removing line return from variable

2007-10-18 Thread Steve Bertrand
Steve Bertrand wrote: > Paul wrote: >> I am assigned the output of a function to a variable. >> >> my$variable = (function); >> print "$variable\n"; >> >> The output is: >> text >> 0 >> >> So I try this: >> >> chop my$variable = (function); >> print "$variable\n"; >> >> The output is: >> text >> **

Re: Removing line return from variable

2007-10-18 Thread Steve Bertrand
Paul wrote: > I am assigned the output of a function to a variable. > > my$variable = (function); > print "$variable\n"; > > The output is: > text > 0 > > So I try this: > > chop my$variable = (function); > print "$variable\n"; > > The output is: > text > *** this is blank space output * >

Re: Removing line return from variable

2007-10-18 Thread Paul
On Thu, October 18, 2007 11:20 am, Matthew Whipple wrote: > [EMAIL PROTECTED] wrote: >> On Thu, October 18, 2007 9:39 am, Matthew Whipple wrote: >> >>> Paul wrote: >>> I am assigned the output of a function to a variable. my$variable = (function); print "$variable\n";

Re: Removing line return from variable

2007-10-18 Thread Matthew Whipple
[EMAIL PROTECTED] wrote: > On Thu, October 18, 2007 9:39 am, Matthew Whipple wrote: > >> Paul wrote: >> >>> I am assigned the output of a function to a variable. >>> >>> my$variable = (function); >>> print "$variable\n"; >>> >>> The output is: >>> text >>> 0 >>> >>> So I try this: >>> >>> c

Re: Removing line return from variable

2007-10-18 Thread unix
On Thu, October 18, 2007 11:50 am, Rob Dixon wrote: > Paul wrote: >> I am assigned the output of a function to a variable. >> >> my$variable = (function); >> print "$variable\n"; >> >> The output is: >> text >> 0 >> >> So I try this: >> >> chop my$variable = (function); >> print "$variable\n"; >> >

Re: Removing line return from variable

2007-10-18 Thread unix
On Thu, October 18, 2007 9:39 am, Matthew Whipple wrote: > Paul wrote: >> I am assigned the output of a function to a variable. >> >> my$variable = (function); >> print "$variable\n"; >> >> The output is: >> text >> 0 >> >> So I try this: >> >> chop my$variable = (function); >> print "$variable\n";

Re: Removing line return from variable

2007-10-18 Thread Matthew Whipple
Paul wrote: > I am assigned the output of a function to a variable. > > my$variable = (function); > print "$variable\n"; > > The output is: > text > 0 > > So I try this: > > chop my$variable = (function); > print "$variable\n"; > > The output is: > text > *** this is blank space output * > > So

Re: Removing line return from variable

2007-10-18 Thread Rob Dixon
Paul wrote: I am assigned the output of a function to a variable. my$variable = (function); print "$variable\n"; The output is: text 0 So I try this: chop my$variable = (function); print "$variable\n"; The output is: text *** this is blank space output * So it get's rid of the "0", but

Removing line return from variable

2007-10-18 Thread Paul
I am assigned the output of a function to a variable. my$variable = (function); print "$variable\n"; The output is: text 0 So I try this: chop my$variable = (function); print "$variable\n"; The output is: text *** this is blank space output * So it get's rid of the "0", but outputs a new