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 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: How to set FTP module time out?

2007-04-12 Thread unix
On Thu, April 12, 2007 10:44 am, Chas Owens wrote: > On 4/12/07, Paul <[EMAIL PROTECTED]> wrote: >> I see default time out is 120, in seconds I assume. How would I change >> this within a perl script? Problem is, when the deomon is locked up, it >> just sits there, so I want to shorting this so t

Re: Array problem

2006-01-23 Thread Ditlev, Unix Consulting
Is this what you wan't ? > open INPUT,"<$ARGV[0]"; > while ($line=){ >push (@array,$line); > } >foreach $i(@array){ >print $i; > } "Andrej Kastrin" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] >I wrote simple script, which have to concatenate multiple lines

Re: parse hash to module

2005-12-22 Thread Ditlev, Unix Consulting
"JupiterHost.Net" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > >>>You can do either but a refernce is more efficient: >> >> Maybe I should use a reference as you suggest now Iam using ... >> >> MyModule::function(%person) >> >> and in my function : >> my %person = @_; >> >> F

Re: parse hash to module

2005-12-19 Thread Ditlev, Unix Consulting
"JupiterHost.Net" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Ditlev, Unix Consulting wrote: >> Hi There, > > Hello, > >> I have some problems undestanding how to parse a hash to module of my >> own. >> >>

parse hash to module

2005-12-18 Thread Ditlev, Unix Consulting
Hi There, I have some problems undestanding how to parse a hash to module of my own. I have this hash %person : $person{$Name}{Name} = "xxx"; $person{$Name}{Id} = ; @( $person{$Name} {Friends} ) But what's the correct method for parsing this hash to my module ??? I try something like mymodu