From davidnicol at gmail.com Wed Jun 8 08:32:24 2005 From: davidnicol at gmail.com (David Nicol) Date: Wed, 8 Jun 2005 10:32:24 -0500 Subject: [Kc] does anyone know the difference between the newSVpv and newSVpvn macros? Message-ID: <934f64a205060808324735c2b8@mail.gmail.com> perlguts seems to treat them like alternate spellings. -- David L Nicol "A rhinoceros, going full tilt on the opposite pavement!" -- Ionesco From stephenc at theiqgroup.com Wed Jun 8 13:58:26 2005 From: stephenc at theiqgroup.com (Stephen Clouse) Date: Wed, 8 Jun 2005 15:58:26 -0500 Subject: [Kc] does anyone know the difference between the newSVpv and newSVpvn macros? In-Reply-To: <934f64a205060808324735c2b8@mail.gmail.com> References: <934f64a205060808324735c2b8@mail.gmail.com> Message-ID: <20050608205826.GA26846@stephenc.theiqgroup.com> An embedded and charset-unspecified text was scrubbed... Name: msg.pgp Url: http://mail.pm.org/pipermail/kc/attachments/20050608/7de3ed40/msg.pl From davidnicol at gmail.com Wed Jun 8 16:14:31 2005 From: davidnicol at gmail.com (David Nicol) Date: Wed, 8 Jun 2005 18:14:31 -0500 Subject: [Kc] does anyone know the difference between the newSVpv and newSVpvn macros? In-Reply-To: <20050608205826.GA26846@stephenc.theiqgroup.com> References: <934f64a205060808324735c2b8@mail.gmail.com> <20050608205826.GA26846@stephenc.theiqgroup.com> Message-ID: <934f64a2050608161463143361@mail.gmail.com> how about, what does the second argument to SvPV do? It is a len argument, but it is a reference where the length will get copied to? Is it unused? -- David L Nicol "A rhinoceros, going full tilt on the opposite pavement!" -- Ionesco From davidnicol at gmail.com Wed Jun 8 16:17:31 2005 From: davidnicol at gmail.com (David Nicol) Date: Wed, 8 Jun 2005 18:17:31 -0500 Subject: [Kc] feeling bad about wasting time with things that are right there in the manuals Message-ID: <934f64a2050608161746432610@mail.gmail.com> In the SvPV macro, the length of the string returned is placed into the variable len (this is a macro, so you do not use &len). If you do not care what the length of the data is, use the SvPV_nolen macro. Historically the SvPV macro with the global variable PL_na has been used in this case. But that can be quite inefficient because PL_na must be accessed in thread-local storage in threaded Perl. In any case, remember that Perl allows arbitrary strings of data that may both contain NULs and might not be terminated by a NUL. -- David L Nicol "A rhinoceros, going full tilt on the opposite pavement!" -- Ionesco From glim at mycybernet.net Thu Jun 16 21:42:00 2005 From: glim at mycybernet.net (Gerard Lim) Date: Fri, 17 Jun 2005 00:42 -0400 Subject: [Kc] Last-minute reminder -- YAPC::NA 2005 Message-ID: Here's a last reminder about Yet Another Perl Conference, North America (YAPC::NA 2005) http://yapc.org/America In case anyone out there has been sitting on the fence or has been meaning to register but has put it on the backburner until now, here is a final information package. Dates: Mon - Wed June 27 - 29, 2005 (11 days from now!) Location: 89 Chestnut Street, University of Toronto, Toronto, Ontario, Canada Accommodations ============== Due to recent renegotiations with the conference facility and hotel, 89 Chestnut, there are still a few rooms left. For details on accommodations go to: http://www.yapc.org/America/accommodations-2005.shtml For quick and easy booking: 89 Chestnut Phone: +1-416-977-0707 Conference booking code: perl0626 The base rate is approx. CAD$80/night, which is *great* for downtown Toronto. Add in taxes and in-room high speed internet and it's up to about CAD$95/night. Book yourself to check-in on Sunday the 26th and check-out on the morning of Wednesday the 29th. Conference Registration ======================= Registration is easy and cheap - only USD$85 - see http://yapc.org/America/register-2005.shtml for details or register directly online at http://donate.perlfoundation.org/index.pl?node=registrant%20info&conference_id=423 The schedule is awesome - http://yapc.org/America/schedule-2005/day1.html >From here, click on the "Day 2" and "Day 3" spots near the top to go from page to page. Click on a talk name to get details regarding the talk. Speakers include Larry Wall, Allison Randal, Autrijus Tang, Brian Ingerson, Andy Lester, chromatic, brian d foy, Chip Salzenberg & Dan Sugalski... and many more! [ This message was sent by Gerard Lim on behalf of the YAPC::NA 2005 Conference organizing committee of the Toronto Perl Mongers. Thanks for your patience and support. ]