in reply to if ($?variable_name)
Or possibly you don't really ask the right question. Because something like "$?" does indeed look quite perlish. But "if ($?variable_name)" does not make much sense to me.
$? is a special variable that contains the return code or error status of that last child spawned or forked by your program, for example by a `...` backticks command or by a system command. Maybe you should explain better your question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if ($?variable_name)
by abhisek09 (Initiate) on Jul 24, 2013 at 22:22 UTC | |
by choroba (Cardinal) on Jul 24, 2013 at 22:25 UTC |