Re: passing perl variable to output html file

From: Joe Smith (joe_at_inwap.com)
Date: 03/27/05

  • Next message: ssmith: "DBI Error: no suitable installation target"
    Date: Sat, 26 Mar 2005 17:24:27 -0800
    
    

    andy.t.chou@gmail.com wrote:
    > the debug print statements print out $first_name and $last_name instead
    > of the values that they are suppose to have.

    You have made as mistake in understanding perl's quoted strings.

    $first_name = 'Joe';
    $last_name = 'Smith';
    print 'Using single quotes: $first_name $last_name\n';
    print "Using double quotes: $first_name $last_name\n";


  • Next message: ssmith: "DBI Error: no suitable installation target"

    Relevant Pages

    • Re: error no: 3075
      ... I'm still not understanding how to fix my mistake. ... You said put single quotes around the name, but where do I do that at? ...
      (microsoft.public.access.modulesdaovba)
    • Re: ["HTTP_POST"] versus [HTTP_POST]
      ... All it does is that it delimits a string literal, for this puropuse double quotes and single quotes are just fine. ... Single quoted strings do not have this quality, and that is the reason they work a little bit faster than double quoted strings. ... That Garfield is so funny! ... echo 'That $cat is so funny!'; ...
      (comp.lang.php)
    • Re: DataTable.select problem with variables
      ... We have ways of parameterizing queries ... I found the mistake after adding the single quotes i gave a space and ... while debugging it doesn't show the space(unable ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Visual C++ Express Edition or lcc-win32?
      ... How could they have done SUCH a huge mistake? ... You seem to have an enormous difficulty understanding the difference ... Remember, Caesar, thou art but a man. ...
      (comp.lang.c)
    • Re: NEWBIE: Not to expand REGEXP
      ... Drop the single quotes in the for command. ... not to acknowledge that it has special characters ... Consult the manpage for kshunder "Quoting." ... deeper understanding concerning how quoting works. ...
      (comp.unix.shell)