From asmith9983 at gmail.com Thu Apr 5 02:03:21 2007 From: asmith9983 at gmail.com (asmith9983 at gmail.com) Date: Thu, 5 Apr 2007 10:03:21 +0100 (BST) Subject: [Edinburgh-pm] Perl: run-time error Message-ID: Hi folks I put together a small Perl script to check for missing sequence numbers in file. The program and the input test data are attached. I get a run-time error, but after many hours have failed to track my error. Any clues would be appreciated. -- Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: seqcheck2.pl Type: text/x-perl Size: 711 bytes Desc: Url : http://mail.pm.org/pipermail/edinburgh-pm/attachments/20070405/f78dbe4e/attachment.bin -------------- next part -------------- 2 3 5 4 1 6 7 9 10 8 11 13 12 15 14 16 18 17 19 20 23 24 25 26 28 27 29 30 31 35 37 42 47 48 50 51 49 53 56 57 44 58 54 61 52 63 64 46 65 66 67 62 68 72 70 75 55 76 69 77 81 78 80 73 82 83 74 87 71 86 79 88 727 409 1406 422 803 1135 980 1268 420 511 768 938 514 487 761 379 797 692 549 1341 1298 994 1053 1157 540 1086 443 1207 460 515 331 565 581 586 635 437 657 690 485 699 479 737 573 793 818 836 857 865 874 877 885 891 894 925 940 738 1005 1012 804 786 807 1068 1069 1076 896 1163 958 989 1247 1030 1283 1047 1326 1122 1348 1126 1379 1412 1210 456 504 1258 1314 1176 597 1360 746 1409 728 718 815 758 810 824 863 904 819 88 85 89 84 90 91 94 102 99 98 105 106 104 100 108 112 113 111 937 584 901 939 908 353 889 700 850 33 992 93 1378 951 1164 1096 32 1169 1170 101 329 1133 1340 154 162 198 1313 518 59 279 1337 95 348 143 274 395 355 333 97 268 461 264 587 558 1137 580 385 705 1333 34 996 1124 935 111 107 114 117 116 115 118 123 119 121 122 124 120 127 126 130 128 131 134 129 136 133 132 135 139 144 146 142 147 145 148 140 141 152 156 157 155 160 161 163 164 167 167 168 171 165 170 169 166 177 178 179 180 183 182 185 194 206 191 211 195 193 186 196 189 205 214 213 203 218 209 181 192 220 212 184 202 216 199 188 207 219 221 222 223 224 228 227 231 233 229 230 232 236 237 234 239 238 235 241 242 240 21 243 244 246 247 22 250 249 254 251 253 258 259 260 270 265 272 273 269 275 277 278 266 280 281 283 284 285 286 288 38 45 292 293 294 294 298 290 295 296 300 291 40 303 297 302 304 306 92 310 301 311 309 315 314 318 96 319 60 316 321 322 308 324 330 109 335 327 325 334 332 337 338 340 342 345 339 346 343 103 349 350 352 138 351 360 362 361 365 363 367 368 369 370 373 371 372 149 376 376 374 150 380 137 383 384 378 173 375 382 174 388 396 393 389 397 401 387 187 403 406 407 405 408 175 412 414 190 176 417 410 416 418 419 415 1072 426 423 425 427 428 430 210 429 431 200 432 435 440 441 225 445 446 444 448 447 197 449 450 451 215 453 454 201 217 455 208 452 458 463 464 459 466 468 476 470 471 483 478 469 480 473 226 481 477 488 491 490 245 493 484 495 489 489 498 501 503 492 505 506 261 507 508 510 984 271 517 519 522 523 305 525 529 530 532 521 538 527 541 535 542 545 543 533 550 546 341 552 551 299 556 336 557 561 555 562 548 344 566 563 559 569 567 326 357 572 574 575 323 576 578 354 320 583 579 588 381 595 594 596 589 589 392 601 602 347 377 607 358 364 611 610 609 618 620 614 390 622 623 624 625 627 399 628 613 629 633 398 632 411 634 637 413 642 424 640 641 402 649 421 651 648 662 646 663 439 658 438 661 655 665 664 668 666 667 465 670 436 691 671 442 684 689 686 683 475 681 675 680 472 698 687 706 695 696 462 From neill.russell at gmail.com Thu Apr 5 02:41:21 2007 From: neill.russell at gmail.com (Neill Russell) Date: Thu, 5 Apr 2007 10:41:21 +0100 Subject: [Edinburgh-pm] Perl: run-time error In-Reply-To: References: Message-ID: <0FDD9149-42A3-4EAC-80A8-11A0FC593F4F@gmail.com> On 5 Apr 2007, at 10:03, asmith9983 at gmail.com wrote: > Hi folks > > I put together a small Perl script to check for missing sequence > numbers in file. The program and the input test data are > attached. I get a run-time error, but after many hours have failed > to track my error. Any clues would be appreciated. > > -- it's to do with the way you're passing a reference of an array to your check_missing_ids routine. you were assigning a scalar reference of the array reference to the array variable my @idlist=$$_[0]; you should deference the array reference if you're going to do this e.g. sub check_missing_ids { my @idlist=@{$_[0]}; ... } ... &check_missing_ids(\@id_list); OR alternatively, just pass a plain old array in the first place sub check_missing_ids { my @idlist=@_; ... } ... &check_missing_ids(@id_list); rgds, neill From nickwoolley at yahoo.co.uk Thu Apr 5 03:10:00 2007 From: nickwoolley at yahoo.co.uk (Nick Woolley) Date: Thu, 05 Apr 2007 11:10:00 +0100 Subject: [Edinburgh-pm] Perl: run-time error In-Reply-To: References: Message-ID: <4614CAF8.4050809@yahoo.co.uk> Hi, Presumably the runtime errors you mean are these? Use of uninitialized value in foreach loop entry at as.pl line 12, <> line 678. Use of uninitialized value in foreach loop entry at as.pl line 12, <> line 678. checking- Argument "" isn't numeric in array element at as.pl line 14, <> line 678. :: is missing I think what you're trying to do is deref the first element of a the argument array @_, but: a) this would need an @ not a $, i.e. @{$_[0]}, not ${$_[0]} b) more to the point here, without the braces, $$_[0] becomes a symbolic reference to an array named by $_, which isn't set to an appropriate value. Nick -- nick at ramen:~/$ perl -d as.pl b 11 DB<2> c read line 2 [snip lots of printout] main::check_missing_ids(as.pl:11): my $val; DB<2> p $start DB<3> p $last DB<4> p $$_[0] DB<5> p @$_[0] DB<6> p @{$_[0]} 1 10 100 1005 101 1012 102 103 103 [snip rest of array] DB<7> x $_ 0 ARRAY(0x83f6e30) empty array DB<8> $_ = 'foo' DB<9> @foo = qw(a b c d) DB<10> p $$_[0] a From perl at aaroncrane.co.uk Mon Apr 9 06:51:59 2007 From: perl at aaroncrane.co.uk (Aaron Crane) Date: Mon, 9 Apr 2007 14:51:59 +0100 Subject: [Edinburgh-pm] Wednesday 11th Message-ID: <20070409135159.GA18809@aaroncrane.co.uk> Seems like it's that time of the month again, and given all the bank holidays and what not, a reminder's probably not unwelcome. I'm planning to be there; anyone else? -- Aaron Crane From perl at minty.org Mon Apr 9 07:24:47 2007 From: perl at minty.org (Murray) Date: Mon, 9 Apr 2007 15:24:47 +0100 Subject: [Edinburgh-pm] Wednesday 11th In-Reply-To: <20070409135159.GA18809@aaroncrane.co.uk> References: <20070409135159.GA18809@aaroncrane.co.uk> Message-ID: <20070409142447.GQ12087@minty.org> On Mon, Apr 09, 2007 at 02:51:59PM +0100, Aaron Crane wrote: > I'm planning to be there; anyone else? ping! From rory at employees.org Mon Apr 9 13:09:15 2007 From: rory at employees.org (Rory Macdonald) Date: Mon, 09 Apr 2007 21:09:15 +0100 Subject: [Edinburgh-pm] Wednesday 11th In-Reply-To: <20070409135159.GA18809@aaroncrane.co.uk> References: <20070409135159.GA18809@aaroncrane.co.uk> Message-ID: <1176149355.14827.18.camel@fiji> On Mon, 2007-04-09 at 14:51 +0100, Aaron Crane wrote: > Seems like it's that time of the month again, and given all the bank holidays > and what not, a reminder's probably not unwelcome. > > I'm planning to be there; anyone else? On lurgy-related grounds, I'm temporarily avoiding bars for a while :-( My last two trips to a bar saw this bloody 'cold' blow up badly. I may make the edlug meet later this month to hear Howard Chu ramble about openLDAP. Rory From anthony at randell.org Tue Apr 10 08:50:54 2007 From: anthony at randell.org (mailbox@randell.org) Date: Tue, 10 Apr 2007 15:50:54 +0000 (UTC) Subject: [Edinburgh-pm] Wednesday 11th Message-ID: <20436732.1176220254779.JavaMail.?@fh1036.dia.cp.net> Plan to be there. Probably will be 19:30-20:00 onwards depending on what time I get out of work. Cheers, Anthony From robrwo at gmail.com Tue Apr 10 13:36:12 2007 From: robrwo at gmail.com (Robert Rothenberg) Date: Tue, 10 Apr 2007 21:36:12 +0100 Subject: [Edinburgh-pm] Wednesday 11th In-Reply-To: <20070409135159.GA18809@aaroncrane.co.uk> References: <20070409135159.GA18809@aaroncrane.co.uk> Message-ID: <461BF53C.9000609@gmail.com> On 09/04/07 14:51 Aaron Crane wrote: > Seems like it's that time of the month again, and given all the bank holidays > and what not, a reminder's probably not unwelcome. > > I'm planning to be there; anyone else? Depends whether my work is going really well or really badly. From barbie at missbarbell.co.uk Mon Apr 16 06:23:26 2007 From: barbie at missbarbell.co.uk (Barbie) Date: Mon, 16 Apr 2007 14:23:26 +0100 Subject: [Edinburgh-pm] Birmingham.pm World Tour Message-ID: <20070416132326.GD19568@smtp.blueyonder.co.uk> Hi folks, Following our very enjoyable night out in Edinburgh last year, I've been thinking about having another jaunt to fit in with our World Tour for 2007. However, the difference this year is we're doing a speaking tour, with a variety of Perl related topics. Seeing as you guys seem to mostly favour the social meetings, and the fact that some of you are also on the EdLUG list, and we've been touring mostly Linux user groups, what are your thoughts on doing some kind of joint event? Depending upon the date, we could have a few members of Birmingham.pm travelling up, and could potentially fill an evening, but it's always nice to do a mixed night of guests and locals :) I'll try and check the Edinburgh.pm list more regularly over the next week, or feel free to get in touch offlist. Cheers, Barbie. -- Birmingham Perl Mongers - http://birmingham.pm.org Miss Barbell Productions - http://www.missbarbell.co.uk From rory at employees.org Mon Apr 16 12:59:21 2007 From: rory at employees.org (Rory Macdonald) Date: Mon, 16 Apr 2007 20:59:21 +0100 Subject: [Edinburgh-pm] Birmingham.pm World Tour In-Reply-To: <20070416132326.GD19568@smtp.blueyonder.co.uk> References: <20070416132326.GD19568@smtp.blueyonder.co.uk> Message-ID: <1176753561.15738.12.camel@fiji> On Mon, 2007-04-16 at 14:23 +0100, Barbie wrote: > Hi folks, > > Following our very enjoyable night out in Edinburgh last year, I've been > thinking about having another jaunt to fit in with our World Tour for > 2007. However, the difference this year is we're doing a speaking tour, > with a variety of Perl related topics. > > Seeing as you guys seem to mostly favour the social meetings, and the > fact that some of you are also on the EdLUG list, and we've been touring > mostly Linux user groups, what are your thoughts on doing some kind of > joint event? > > Depending upon the date, we could have a few members of Birmingham.pm > travelling up, and could potentially fill an evening, but it's always > nice to do a mixed night of guests and locals :) > > I'll try and check the Edinburgh.pm list more regularly over the next > week, or feel free to get in touch offlist. Hey Barbie, I'd be quite happy for such a double up. EdLUG have been discussing the matter of locations for talks/beers/etc this last week. http://www.edlug.ed.ac.uk/archive/Apr2007/msg00142.html Despite a couple of close misses, ed.pm has yet to host any talks, so I'm sure we would be happy to piggyback on the efforts of EdLUG re. a location for a talk. I think Aaron is the only current monger here who does Perl presentations - maybe he could be persuaded to wade in with a talk too? :-) Faye, this sound good to you? Barbie, do you have a vague month in mind? Rory From rory at employees.org Thu Apr 26 16:19:03 2007 From: rory at employees.org (Rory Macdonald) Date: Fri, 27 Apr 2007 00:19:03 +0100 Subject: [Edinburgh-pm] [Fwd: [pm_groups] White Camel awards nominations] Message-ID: <1177629543.5399.8.camel@fiji> In case anyone sits beside a genius. Rory -------------- next part -------------- An embedded message was scrubbed... From: "David H. Adler" Subject: [pm_groups] White Camel awards nominations Date: Thu, 26 Apr 2007 14:24:03 -0400 Size: 4736 Url: http://mail.pm.org/pipermail/edinburgh-pm/attachments/20070427/ca7a2c84/attachment.mht