in reply to unix command with system
If you're talking about simple variables, try this in your ~/.profile:
ONE=2233 TWO=3434 export ONE TWO
And than use the following in your script:
my $value = "$ENV{ONE}/$ENV{TWO}"; print "my value is $value\n";
Update: I figured, you wanted to get "2233/3434" as a result (as in a directory tree), but if you want what neuroball suggests below, please ignore my suggestion, as far as the quotes go ;)
|
|---|