title: Converting IP address to number in tcl
body: <p>i want to convert string to number to use in <strong>SCP</strong> command. can someone please help?</p>
  
  <pre><code>set ip "192.168.1.2"
  scp:root@$ip//etc/dev/
  </code></pre>
  
  <p>it doesn't replace <code>$ip</code> with the IP i had set.</p>
  
  <p>how do I convert the IP to number as the scp command is expecting number rather than string.</p>
  
  <p>Thanks</p>