Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: robw6
  • Order by date
  1. robw6

    perl: setting ENV variable

    I think you're right - I found a tip on another list that answers a similar query, although that concerned a bash script rather than Perl. It turns out that if you _run_ a bash script that does export VARIABLE then it does not persist - only works for children. However if instead you _source_...
  2. robw6

    perl: setting ENV variable

    Thanks - just tried it with this result: sh: -c: line 1: syntax error near unexpected token `'WORLD=earth'' sh: -c: line 1: `export('WORLD=earth')' I guess this means that the shell is complaining - but does the "sh" mean that it's not bash? I wonder if this is the reason for my...
  3. robw6

    perl: setting ENV variable

    I'm trying to set some ENV variables so that other programs can use them. Setting via %ENV doesn't work after the Perl script (child) has terminated. So I thought the Shell module should help - apparently this allows shell commands to be run. Although something like this (example from perldoc)...

Part and Inventory Search

Back
Top