syntax problem

M

Mostafa

my($iwperl) = ($^O ne "MSWin32") ? "" : "$iwhome/iw-perl/bin/iwperl ";

here what does thia $^O means ?

and then how "?" is related to this statement?
 
G

Gunnar Hjalmarsson

Mostafa said:
my($iwperl) = ($^O ne "MSWin32") ? "" : "$iwhome/iw-perl/bin/iwperl ";

here what does thia $^O means ?

Can be looked up in

perldoc perlvar
and then how "?" is related to this statement?

See the "conditional operator" in

perldoc perlop
 
J

Jürgen Exner

Mostafa said:
my($iwperl) = ($^O ne "MSWin32") ? "" : "$iwhome/iw-perl/bin/iwperl ";

here what does thia $^O means ?

See "perldoc perlvar":
$^O The name of the operating system under which this copy of
Perl...
and then how "?" is related to this statement?

See "perldoc perlop", section "Conditional Operator"

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,435
Latest member
PhilipBelm

Latest Threads

Top