On Thu, Feb 12, 2009 at 05:33, Anisha Parveen
<anishaparveen2...@gmail.com> wrote:
snip
>>     my $Tmpstr = `$path $HOME/bin/*crypt* -e -f $_keyfile<<EOF
>> $str
>> EOF`;
snip

Your first command was different.  Those *s are important.  Also, what
is in $path.  That might will make a difference as well.  I would
suggest copying those lines, changing the backticks to double quotes
and "my $Tmpstr =" to print.  This will print out exactly what is
being executed.  Try executing that on the command line.  If it takes
the same amount of time it is taking in Perl then you know Perl isn't
to blame.

If you can, please explain what $HOME/bin/crypt does.  If it is not
complicated (or it is a standard function or modules) or speed
sensitive you will be better served by implementing it in Perl rather
than executing an external program.


-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to