IBM
000-221 · Question #14
000-221 Question #14: Real Exam Question with Answer & Explanation
Sign in or unlock 000-221 to reveal the answer and full explanation for question #14. The question stem and answer options stay visible for context.
Question
Within a Perl script, how can the output of the hostname command be assigned to a variable called myHostname?
Options
- AchopfmyHostname-'hostname -s 2>/dev/null")
- Bchop($myHostname=%hostname -s 2>/dev/nuir);
- C$myHostname=7usr/bin/hostname".
- Dchomp(@myHostname-hostname -s 2>/dev/null');
Unlock 000-221 to see the answer
You've previewed enough free 000-221 questions. Unlock 000-221 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.