title: Inserting data into the mysql database from perl
body: <p>I am trying to insert data into a MySQL database:</p>
  
  <pre><code>$response = $client-&gt;fql-&gt;query(
    query =&gt; '
      SELECT name, email, birthday, username, first_name, last_name, pic
      FROM   user
      WHERE  uid =  me()
    ',
  );
  
  print join "\n Name:",  sort map { $_-&gt;{name} } @$response;
  
  $dbh-&gt;do("
    INSERT INTO Users(SNo,Name,Email,Birthday,UserName,FirstName,LastName)
    VALUES(1,
           sort map { $_-&gt;{name} } @$response,
           'imm\@gmail.com',
           '1987/12/10',
           'imm',
           'imm',
           'Dee')
  ");
  
  $dbh-&gt;disconnect();
  </code></pre>
  
  <p>used the mysql query in one line.</p>
  
  <p>This above print statement is printing the name correctly but why the above sql insert statement is not working?</p>
  
  <p>I connect the db and after that i am receiving the value and printing in the browser is working.</p>
  
  <p>Why does the mysql statement not accept the value?
  When inserting the database is not working?</p>