System error

error:  Error during compilation of /home/martink/www/htdocs/snowflakes/autohandler:
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 126.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 210.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 87.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 152.
"my" variable $link masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 153.
Unmatched right curly bracket at /home/martink/www/htdocs/snowflakes/autohandler line 173, at end of line
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 173, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 192, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 120, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 127, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 204, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 211, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 77, near "}"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 139, near "}"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 228, near "}"
(Might be a runaway multi-line '' string starting on line 227)
/home/martink/www/htdocs/snowflakes/autohandler has too many errors.
context: 
... 
73:  </p>
74:  </div>
75:  </%method>
76: 
77:  <& /note.mhtml, key=>"snowflakes" &>
78: 
79:  <h1>It's Snowing in my CPU &mdash; a Snowflake catalogue</h1>
80: 
81:  <& SELF:leadingquote &>
... 
83:  <& SELF:masthead, cache=>$cache &>
84: 
85:  <p>Somewhere in the world, it's snowing. But you don't need to go far&mdash;it's always snowing on this page. Explore <a href="random.mhtml">random flurries</a>, <a href="families.mhtml">snowflake families</a> and <a href="flake.mhtml?flake=autqzcws">individual flakes</a>. There are many <a href="oddities.mhtml">unusual snowflakes</a> and snowflake <a href="families.mhtml?family=12">family 12</a> and <a href="families.mhtml?family=46">family 46</a> are very interesting.
86: 
87:  <p>But don't settle for only pixel snowflakes&mdash;<a href="snowflake.3dprint.mhtml?name=morptel">make an STL file and 3D print your own flakes</a>!
88: 
89:  <p>Ad blockers may interfere with some flake images&mdash;the names of flakes can trigger ad filters.
90: 
91:  <p>And if after reading about my flakes you want more, get your frozen fix with <a href="http://www.snowcrystals.com/white/white.html">Kenneth Libbrecht's excellent work</a> and <a href="https://www.goodreads.com/book/show/1447512.Snowflake">Paul Gallico's Snowflake</a>.
... 
116: 
117:  <%method alt>
118:  % return "Gravner-Griffeath Snowflake Simulation by Martin Krzywinski and Jake Lever";
119:  </%method>
120: 
121:  <%method masthead>
122:  % my $n = 7;
123:  % my @codes = (sort { rand() <=> rand() } $m->comp("oddities.mhtml:oddflakes"))[0..$n-1];
124:  % my @idx = map { $cache->{by}{code}{$_} } @codes;
125:  % my @flakes = map { $cache->{flakes}[$_] } @idx;
126:  <div class=masthead>
127: 
128:  <p>Go ahead, meet some snowflakes.</p>
129:  <div class=vmar4>
130:  % for my $flake (@flakes) {
131:  <& SELF:drawflake, flake=>$flake, label=>sprintf("%s",$flake->{name}), width=>125, suffix=>"tf" &>
... 
135:  <br clear=both>
136:  </div>
137:  <%args>
138:  $cache
139:  </%args>
140:  </%method>
141: 
142:  <%method drawflake>
143:  % return if ! $flake && ! $blank;
... 
148:  % return;
149:  % }
150:  % my $arenh = $flake->{code} eq "autqzcws";
151:  % $label = "Arenh Jerrus\nof Bosmen" if $arenh && defined $label;
152:  % my $dir = $transparent ? "flakes.transparent" : "flakes";
153:  % $dir .= ".thumb" if $width <= 170;
154:  % my $file = sprintf("%s/snowflake-%s", $dir,$code);
155:  <div class=<% $class %> style="width:<% $width %>px;">
156:  % if($link) {
157:  <a href="<% $link %>">
... 
169:  % }
170:  </div>
171:  <%args>
172:  $flake => undef
173:  $width => 100
174:  $suffix => "tf"
175:  $link => undef
176:  $flakelink => 1
177:  $label => undef
... 
188:  <style>
189:  .note {
190:  background: #eee;
191:  color: #000;
192:  }
193:  .note a {
194:  color: #696969;
195:  }
196:  </style>
... 
200:  a Scientific American "SA Visual" story about beauty, imagination and machine learning by <a class=dotted href="https://www.grad.ubc.ca/campus-community/meet-our-students/lever-jake">Jake Lever</a> and myself.
201:  </div>
202:  </%method>
203: 
204:  <%attr>
205:  crumb => "In Silico Flurries &mdash; A Snowflake Catalogue"
206:  image_masthead => 0
207:  support => 0
208:  stream_items => 0
209:  slogan_word1 => ["water","snow","geometry"]
210:  slogan_word2 => ["frozen","wet","stellar"]
211:  keywords => [qw(science art visualization martin krzywinski snowflake gravner griffeath snow simulation reaction diffusion hex grid symmetry flube)]
212:  title => "In Silico Flurries: Gravner-Griffeath Snowflake Simulation"
213:  </%attr>
214: 
215:  <%method showposter>
... 
224:  % } else {
225:  <& SELF:image, file=>"img/$p->{file}.png", width=>$width, caption=>$caption, float=>$float, style=>$style||"margin-right:5px;", zoom=>1, alt=>$m->scomp("SELF:alt") &>
226:  % }
227:  <%args>
228:  $link => undef
229:  $i => undef
230:  $width => undef
231:  $style => undef
232:  </%args>
... 
code stack:  /usr/local/share/perl5/5.32/HTML/Mason/Interp.pm:450
/usr/local/share/perl5/5.32/HTML/Mason/Interp.pm:773
/usr/local/share/perl5/5.32/HTML/Mason/Component.pm:333
/usr/local/share/perl5/5.32/HTML/Mason/Request.pm:440
raw error






























Error during compilation of /home/martink/www/htdocs/snowflakes/autohandler:
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 126.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 210.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 87.
"my" variable %ARGS masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 152.
"my" variable $link masks earlier declaration in same scope at /home/martink/www/htdocs/snowflakes/autohandler line 153.
Unmatched right curly bracket at /home/martink/www/htdocs/snowflakes/autohandler line 173, at end of line
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 173, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 192, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 120, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 127, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 204, near "}"
Can't use global $^W in "my" at /home/martink/www/htdocs/snowflakes/autohandler line 211, near "local $^W"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 77, near "}"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 139, near "}"
syntax error at /home/martink/www/htdocs/snowflakes/autohandler line 228, near "}"
  (Might be a runaway multi-line '' string starting on line 227)
/home/martink/www/htdocs/snowflakes/autohandler has too many errors.


Trace begun at /usr/local/share/perl5/5.32/HTML/Mason/Interp.pm line 851
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x7f456468b298)', '/home/martink/www/htdocs/snowflakes/autohandler', 'HTML::Mason::Exception::Compilation=HASH(0x7f45804f85f0)') called at /usr/local/share/perl5/5.32/HTML/Mason/Interp.pm line 450
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x7f456468b298)', '/snowflakes/autohandler') called at /usr/local/share/perl5/5.32/HTML/Mason/Interp.pm line 773
HTML::Mason::Interp::find_comp_upwards('HTML::Mason::Interp=HASH(0x7f456468b298)', '/snowflakes', 'autohandler') called at /usr/local/share/perl5/5.32/HTML/Mason/Component.pm line 333
HTML::Mason::Component::parent('HTML::Mason::Component::FileBased=HASH(0x7f4581f6c420)') called at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 440
eval {...} at /usr/local/share/perl5/5.32/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f456468abc0)') called at /usr/local/share/perl5/5.32/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f456468abc0)') called at /usr/local/share/perl5/5.32/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f4565422fa8)', 'Apache2::RequestRec=SCALAR(0x7f4565cc3ea8)') called at (eval 25) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7f4565cc3ea8)') called at -e line 0
eval {...} at -e line 0