in reply to trying to use a varible in the perl replace command

Try $ENV{model} instead.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

  • Comment on Re: trying to use a varible in the perl replace command

Replies are listed 'Best First'.
Re: Re: trying to use a varible in the perl replace command
by the pusher robot (Monk) on Jul 08, 2003 at 19:34 UTC
    Or replace the single quotes with double quotes (so the shell can do var substitution).
Re: Re: trying to use a varible in the perl replace command
by sauoq (Abbot) on Jul 08, 2003 at 19:54 UTC

    That won't work. His $model is a shell variable, not an environment variable. (It hasn't been exported.)

    -sauoq
    "My two cents aren't worth a dime.";