Shlomi, what is "top posting?" where you said: "please avoid top-posting and quote my reply"
Fyi I used use strict; and use warnings; And got a bunch of global errors to I put "my" in front of all of my variables. I have a lot to learn still. #!/usr/bin/perl use strict; use warnings; my $first = 0xFF; my $second = 0377; my $third = 0b11111111; print "$first, $second, $third\n"; my $answer = $first + $second + $third; print "$answer\n"; Mike Grove | AIX System Administrator OIT - BIO - Server Farms Division PA Department of Labor & Industry 651 Boas Street Room 124 | Harrisburg, PA 17121 Phone: 717-705-2724 | Fax: 717-783-6364 AIX Hot Line 717-525-5598 | AIX Cell 717-329-0502 -----Original Message----- From: Shlomi Fish [mailto:shlo...@iglu.org.il] Sent: Wednesday, January 06, 2010 1:48 PM To: beginners@perl.org Cc: Grove, Michael Subject: Re: double quotes are needed On Wednesday 06 Jan 2010 20:38:29 Grove, Michael wrote: > Thanks. > > Is this better? > > print "$first, $second, $third","\n"; > Yes, but you can also write it as: <<<< print "$first, $second, $third\n"; >>>> > 255, 255, 255 > 765 > > If I put the second set of quotes after the last comma, I get an error. > What do you mean by that? How are you writing it? Also, please avoid top-posting and quote my reply: http://en.wikipedia.org/wiki/Posting_style Regards, Shlomi Fish > I am only on pg 21 of Learning Perl 5th ed. I am trying as many variations > of the examples just to mess around and see what happens with different > characters. > > > Mike Grove | AIX System Administrator > OIT - BIO - Server Farms Division > PA Department of Labor & Industry > 651 Boas Street Room 124 | Harrisburg, PA 17121 > Phone: 717-705-2724 | Fax: 717-783-6364 > AIX Hot Line 717-525-5598 | AIX Cell 717-329-0502 -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Optimising Code for Speed - http://shlom.in/optimise Bzr is slower than Subversion in combination with Sourceforge. ( By: http://dazjorz.com/ ) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/