• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

?... '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"
0
hank1
Asked:
hank1
  • 2
1 Solution
 
bebonhamCommented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now