in reply to Re: if modifier of a print statement
in thread if modifier of a print statement
/no_proc/ ? print "$_\n" : print "$_ : in proc\n" ;
You are using the Conditional Operator in void context.   That is usually written as:
print /no_proc/ ? "$_\n" : "$_ : in proc\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: if modifier of a print statement
by Marshall (Canon) on Jun 30, 2009 at 12:34 UTC | |
by jwkrahn (Abbot) on Jun 30, 2009 at 13:38 UTC | |
by Marshall (Canon) on Jun 30, 2009 at 15:58 UTC | |
|
Re^3: if modifier of a print statement
by JavaFan (Canon) on Jul 01, 2009 at 09:58 UTC |