• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

perl errors

Can someone advice what these errors are in my perl script: (runs on linux)

I've put the error and line that its occuring on


Statement: $process_name =~ s/ +/_/g;
Error: Use of uninitialized value in substitution (s///)


Thanks
0
trance12
Asked:
trance12
1 Solution
 
lwadwellCommented:
Hi trance12,

Statement: $process_name =~ s/ +/_/g;
Error: Use of uninitialized value in substitution (s///)

This is complaining that the variable $process_name has not be set to a value (or is undefined).


lwadwell
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now