in reply to unix command with system

What is wrong?

Not much, I almost saw a stroke of genius in what you tried to do. The only problem for you is, that unix shells don't work like calculators.

What you want to archive can be done by using the following code:

my $value =$ENV{"one"} / $ENV{"two"}; print "my value is $value\n";

$ENV{x} allows you access to the value that is stored in the environment variable x.

/oliver/

Replies are listed 'Best First'.
Re: Re: unix command with system
by samy1212 (Novice) on Jan 17, 2004 at 01:33 UTC
    thanks all