I am using GetOptions to get values from perl
GetOptions(
'lines=s'=>\$globallines,
);
Here, lines
is an optional argument. When the user does not enter a value, I am getting a use of uninitialized variable
warning where I am using the lines
variable in an if statement. I am unable to fix this warning. Can you please help him?
Sorry if it is a silly question,I am new to perl.
if($globallines>0){#<SOME CODEEE>