>>>>> "JD" == John Delacour <johndelac...@gmail.com> writes:

  JD> On 24 December 2010 14:49, Jugurtha Hadjar <jugurtha.had...@gmail.com> 
wrote:
  >> I rewrote your code and at the very beginning, just before any variable was
  >> /used/ [i.e, just after "use strict", I added
  >> 
  >> 
  >> # Intialization begins
  >> 
  >> my $cell        ='';
  >> my $filename    ='';

  JD> If you're going to an empty value (which is not necessary) then at
  JD> least you must close the quotes!:

huh? those were pairs of single quotes.

  JD> my $cell        ="'';
  JD> my $filename    =''";

and those won't compile.

  JD> Easier to to

  JD> my ($cell, $filename, $etc);

easier to declare them when first used.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to