?... 'reboot ""\n' and "reboot \"\"\n"

What's the difference between the two?  Is it the
way "\n" is treated?

$REBOOT = 'reboot ""\n'
$REBOOT = "reboot \"\"\n"
LVL 1
hank1Asked:
Who is Participating?
 
bebonhamConnect With a Mentor Commented:
first one will print whatever is inside of the '...'

the \n is treated literaly and printed.

the second is inside "..." and everything will be interperated.

so, the \" renders a " and the \n renders a newline character.


so, ex 1. is literal, ex2 is interperated.

Bob
0
 
hank1Author Commented:
Thank you.  (That'll be the easiest 25 you'll ever get :-)
0
 
bebonhamCommented:
hmm...it ranks up there anyways...

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.