60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator 961 PerlMonks 2014-12-21 23:18:51 rss,clean Sun Dec 21 12:18:51 2014 30 20141221121851 Sun Dec 21 12:18:51 2014 http://perlmonks.org/ Anonymous Monk Re^8: Private temporal files on Windows salva http://perlmonks.org/index.pl?node_id=1110982 I am currently trying to make a module from that: <a href="https://github.com/salva/p5-Win32-SecretFile">https://github.com/salva/p5-Win32-SecretFile</a>... note Sun, 21 Dec 2014 23:11:17 +0000 http://perlmonks.org/index.pl?node_id=1110982 1110982 446266 2014-12-21 18:11:17 salva Re: Attempt to embed Perl in C on Windows BrowserUk http://perlmonks.org/index.pl?node_id=1110981 Strangely, your code built with MSVC and perl5.10 builds clean and runs perfectly: C:\test>cl /W3 hello.c -DWIN32 -I"C:\Perl64\lib\CORE" C:\Perl64\lib\CORE... note Sun, 21 Dec 2014 20:48:29 +0000 http://perlmonks.org/index.pl?node_id=1110981 1110981 171588 2014-12-21 15:48:29 BrowserUk Re^2: closures: anonymous subs vs function templates? Laurent_R http://perlmonks.org/index.pl?node_id=1110980 Hi <a href="?node=Athanasius">Athanasius</a> But if we attempt to do this with a function template, the warning we get: Use of uninitialized value in addition (+) at... shows that the inner sub is actu... note Sun, 21 Dec 2014 18:46:21 +0000 http://perlmonks.org/index.pl?node_id=1110980 1110980 992570 2014-12-21 13:46:21 Laurent_R Re^3: XY Problem Anonymous Monk http://perlmonks.org/index.pl?node_id=1110979 What? Yes it is. Plus, it's meant to be funny, and I think it is. It's just a play on a famous quote, one variant of which is Some people, when confronted with a problem,... note Sun, 21 Dec 2014 18:34:20 +0000 http://perlmonks.org/index.pl?node_id=1110979 1110979 961 2014-12-21 13:34:20 Anonymous Monk Re: Help inserting Kanji in MSSQL DB CountZero http://perlmonks.org/index.pl?node_id=1110978 The string you try to save into the database contains HTML-entities, not UNICODE characters.Try to decode the HTML-entities to UNICODE with the decode_entities function of &#91;module://HTML::En... note Sun, 21 Dec 2014 18:28:42 +0000 http://perlmonks.org/index.pl?node_id=1110978 1110978 198160 2014-12-21 13:28:42 CountZero Re^3: closures: anonymous subs vs function templates? Laurent_R http://perlmonks.org/index.pl?node_id=1110977 The lexical form is certainly more limited. I don't really agree with that sentence. Being able to limit the scope is usually extremely useful. It not only reduce... note Sun, 21 Dec 2014 18:22:26 +0000 http://perlmonks.org/index.pl?node_id=1110977 1110977 992570 2014-12-21 13:22:26 Laurent_R Re^2: Help inserting Kanji in MSSQL DB michaeldhenry http://perlmonks.org/index.pl?node_id=1110976 I just tried running the CGI script from the command line using "perl test.cgi" and it inserted the Kanji correctly so now I don't think it is Perl or DB related. Now I am thinking it may be so... note Sun, 21 Dec 2014 18:20:54 +0000 http://perlmonks.org/index.pl?node_id=1110976 1110976 1110960 2014-12-21 13:20:54 michaeldhenry Re: Help inserting Kanji in MSSQL DB Laurent_R http://perlmonks.org/index.pl?node_id=1110975 I do not know much about MS SQL Server, but possibly your database is not set up for storing UTF-8 strings. Update: Forget what I wrote above. I did not even see it, but, of course, &#91;Coun... note Sun, 21 Dec 2014 18:04:57 +0000 http://perlmonks.org/index.pl?node_id=1110975 1110975 992570 2014-12-21 13:04:57 Laurent_R Re^2: XY Problem jdporter http://perlmonks.org/index.pl?node_id=1110974 Yeah, that's not really the same as an XY problem, though. ... note Sun, 21 Dec 2014 17:59:10 +0000 http://perlmonks.org/index.pl?node_id=1110974 1110974 170442 2014-12-21 12:59:10 jdporter Re^4: closures: anonymous subs vs function templates? Laurent_R http://perlmonks.org/index.pl?node_id=1110973 Well, there are cases where you can actually do something useful with named closures. Consider this example, a very simplified version of part of a module I wrote at work a few years ago. I wanted the... note Sun, 21 Dec 2014 17:51:36 +0000 http://perlmonks.org/index.pl?node_id=1110973 1110973 992570 2014-12-21 12:51:36 Laurent_R