title: How to use variables in a equation using Perl
body: <p>I'm trying to use possible variables in a equation with Perl.</p>
  
  <p>For example: </p>
  
  <pre><code>#!/usr/bin/perl -w
  
  $a = "yellow";
  
  $b = "orange";
  
  $c = "col1fl0ur";
  
  $c = $a + $b;
  
  print "$a + $b = $c \n";
  </code></pre>
  
  <p>I want to be able to state the value for each variable <code>$a</code>, <code>$b</code>, <code>$c</code>, then be able to say that</p>
  
  <pre><code>$a + $b = "col1fl0ur"
  </code></pre>
  
  <p>You may ask; whats the point? just print out <code>col1fl0ur</code>, butI want to be able to use many more variables as well, such as in this case:</p>
  
  <pre><code>#!/usr/bin/perl -w
  
  
  ###values###
  $a = "yellow";
  
  $b = "orange";
  
  $c = "col1fl0ur";
  
  $d = "derp";
  
  $e = "oplo";
  
  $f = "qwerty";
  
  
  ###defining the equation###
  $c = $a + $b;
  
  $d = $a + $c;
  
  $f = $d + $c;
  
  
  ###Printing###
  print "$a + $b = $c \n";
  print "$a + $c = $d \n";
  print "$d + $c = $f \n";
  </code></pre>