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 2015-02-28 02:55:12 rss,clean Fri Feb 27 15:55:12 2015 30 20150227155512 Fri Feb 27 15:55:12 2015 http://perlmonks.org/ Anonymous Monk What is backslash and number means in string Anonymous Monk http://perlmonks.org/index.pl?node_id=1118132 I saw string like this: print "\353\257\274\354\243\274\355\231\224!" is it hexademical or demical? and is it unicode codepoint? what is difference between \x a... perlquestion Fri, 27 Feb 2015 22:54:25 +0000 http://perlmonks.org/index.pl?node_id=1118132 1118132 961 2015-02-27 17:54:25 Anonymous Monk OSX File::Find avoid automounted file systems CarolinaPerler http://perlmonks.org/index.pl?node_id=1118128 As the title says, 'have an application that runs on several Linux, UNIX, and Windows variants, plus OSX. The application periodically has to search the file systems for certain files or files wit... perlquestion Fri, 27 Feb 2015 21:14:21 +0000 http://perlmonks.org/index.pl?node_id=1118128 1118128 979486 2015-02-27 16:14:21 CarolinaPerler Re^2: poll ideas quest 2013 (continents) Anonymous Monk http://perlmonks.org/index.pl?node_id=1118151 Three: Afro-Eurasia, America, Antarctica. Australia is too small to be a continent ... note Sat, 28 Feb 2015 02:54:30 +0000 http://perlmonks.org/index.pl?node_id=1118151 1118151 961 2015-02-27 21:54:30 Anonymous Monk Re: Using indexing for faster lookup in large file erix http://perlmonks.org/index.pl?node_id=1118150 I think only the first two numbers actually matter because it seems clear from your example data that the second number is always the NCBI taxonomy ID (tax_id). The whole string behind that tax_id... note Sat, 28 Feb 2015 02:25:50 +0000 http://perlmonks.org/index.pl?node_id=1118150 1118150 399498 2015-02-27 21:25:50 erix Re^7: Any gotchas with CGI and Mouse running together? Anonymous Monk http://perlmonks.org/index.pl?node_id=1118149 So LanX are you going to bench this?... note Sat, 28 Feb 2015 01:09:06 +0000 http://perlmonks.org/index.pl?node_id=1118149 1118149 961 2015-02-27 20:09:06 Anonymous Monk Re: Want END block to run except when usage()/--help invocation Anonymous Monk http://perlmonks.org/index.pl?node_id=1118148 I suggest you trap the exception ("die" ...) with an eval { } block within your code, maybe in an outer level subroutine that simply calls an inner sub to do the actual work. I would not rel... note Sat, 28 Feb 2015 01:01:44 +0000 http://perlmonks.org/index.pl?node_id=1118148 1118148 961 2015-02-27 20:01:44 Anonymous Monk Re^3: HTML::TableExtract problem handling merged cells across rows (OBO rowspan colspan) Anonymous Monk http://perlmonks.org/index.pl?node_id=1118147 Try <a href="https://metacpan.org/pod/Spreadsheet::Read#xls2csv">https://metacpan.org/pod/Spreadsheet::Read#xls2csv</a>... note Sat, 28 Feb 2015 00:59:56 +0000 http://perlmonks.org/index.pl?node_id=1118147 1118147 961 2015-02-27 19:59:56 Anonymous Monk Re: -e not working Perl 5.008008 Anonymous Monk http://perlmonks.org/index.pl?node_id=1118146 If you want unicode filenames you need <a href="https://metacpan.org/module/Win32%3A%3AUnicode">Win32::Unicode</a> api... note Sat, 28 Feb 2015 00:30:51 +0000 http://perlmonks.org/index.pl?node_id=1118146 1118146 961 2015-02-27 19:30:51 Anonymous Monk Re: ip_match doesn't seem to work Anonymous Monk http://perlmonks.org/index.pl?node_id=1118145 copy/paste is your friend :) whether you're doing it from the docs or from the nodes... note Sat, 28 Feb 2015 00:16:14 +0000 http://perlmonks.org/index.pl?node_id=1118145 1118145 961 2015-02-27 19:16:14 Anonymous Monk Re^4: -e not working Perl 5.008008 Anonymous Monk http://perlmonks.org/index.pl?node_id=1118144 Well that's weird cause in my browser I don't see exactly the three images for which Perl can't find the filenames. (cause it doesn't fall back to ISO-8859-1)... note Sat, 28 Feb 2015 00:16:04 +0000 http://perlmonks.org/index.pl?node_id=1118144 1118144 961 2015-02-27 19:16:04 Anonymous Monk Re^3: -e not working Perl 5.008008 kennethk http://perlmonks.org/index.pl?node_id=1118143 There's a couple of areas where you could be bit by encodings in this chain -- <a href="http://en.wikipedia.org/wiki/Special:Search?search=percent-encoding">percent-encoding</a>, <a href="http://en.wikipedia.org/wiki/Special:Search?search=HTML_entities">HTML_entities</a>, and Linux/Windows issues. That you are also rolling a web server into the... note Fri, 27 Feb 2015 23:58:15 +0000 http://perlmonks.org/index.pl?node_id=1118143 1118143 712372 2015-02-27 18:58:15 kennethk Re^3: Using indexing for faster lookup in large file BrowserUk http://perlmonks.org/index.pl?node_id=1118140 The data is sorted lexicographically on the first number. You mean like this? C:\Users\HomeAdmin>perl -E"@s = 1..30; say for sort @s" 1 10 11 12 13 14 ... note Fri, 27 Feb 2015 23:48:34 +0000 http://perlmonks.org/index.pl?node_id=1118140 1118140 171588 2015-02-27 18:48:34 BrowserUk Re: What is backslash and number means in string Your Mother http://perlmonks.org/index.pl?node_id=1118139 perl -le 'print "\353\257\274\354\243\274\355\231\224!"' &#48124;&#51452;&#54868;! Hmmm… Democratization… Funny d... note Fri, 27 Feb 2015 23:47:59 +0000 http://perlmonks.org/index.pl?node_id=1118139 1118139 248054 2015-02-27 18:47:59 Your Mother Re: What is backslash and number means in string Anonymous Monk http://perlmonks.org/index.pl?node_id=1118138 UTF-8 bytes in octal notation. See <a href="http://perldoc.perl.org/perlop.html">perlop</a>.... note Fri, 27 Feb 2015 23:41:12 +0000 http://perlmonks.org/index.pl?node_id=1118138 1118138 961 2015-02-27 18:41:12 Anonymous Monk Re: Using indexing for faster lookup in large file Your Mother http://perlmonks.org/index.pl?node_id=1118137 #!/usr/bin/env perl use 5.014; use strictures; use Lucy; use Time::HiRes "gettimeofday", "tv_interval"; my $index = "./lucy.index"; my $schema = Lucy::Plan::Schema->new; my $easyanaly... note Fri, 27 Feb 2015 23:38:41 +0000 http://perlmonks.org/index.pl?node_id=1118137 1118137 248054 2015-02-27 18:38:41 Your Mother Re^3: -e not working Perl 5.008008 Anonymous Monk http://perlmonks.org/index.pl?node_id=1118136 But the image is in fact there by looking at the next column where I don't check for its existence. Well that's weird cause in my browser I don't see exactly the three images... note Fri, 27 Feb 2015 23:32:32 +0000 http://perlmonks.org/index.pl?node_id=1118136 1118136 961 2015-02-27 18:32:32 Anonymous Monk Re^2: Using indexing for faster lookup in large file anli_ http://perlmonks.org/index.pl?node_id=1118135 Hi, and thanks for taking the time. I've included 200 random lines below 106896752;384407;root;cellular organisms;Eukaryota;Viridiplantae;Streptophyta;Streptophytina;Embryophyt... note Fri, 27 Feb 2015 23:12:53 +0000 http://perlmonks.org/index.pl?node_id=1118135 1118135 1115090 2015-02-27 18:12:53 anli_ Re^2: Using indexing for faster lookup in large file anli_ http://perlmonks.org/index.pl?node_id=1118134 Hi, and thanks for your reply. The data isn't quite representable, and that was perhaps a bit stupid of me.A more proper representation is below (3 random lines). The data is sorted l... note Fri, 27 Feb 2015 23:11:25 +0000 http://perlmonks.org/index.pl?node_id=1118134 1118134 1115090 2015-02-27 18:11:25 anli_ Re^2: Using indexing for faster lookup in large file anli_ http://perlmonks.org/index.pl?node_id=1118133 Hi. thanks for your reply. Turning it into a actual database would be an option, and perhaps the best route to go here. I'm basically looking for something that will both solve this problem, but t... note Fri, 27 Feb 2015 23:00:50 +0000 http://perlmonks.org/index.pl?node_id=1118133 1118133 1115090 2015-02-27 18:00:50 anli_ Re^2: -e not working Perl 5.008008 GLJSD http://perlmonks.org/index.pl?node_id=1118131 The data is retrieved from a tab-separated text file. You can visit the results at this address: http://www.1604.ca/cgi-bin/spanish.pl You'll notice that if I check for the existence of th... note Fri, 27 Feb 2015 22:29:26 +0000 http://perlmonks.org/index.pl?node_id=1118131 1118131 1118098 2015-02-27 17:29:26 GLJSD Re: Cutting last word from a output line kroach http://perlmonks.org/index.pl?node_id=1118130 To get only the last word of a commands output: my ($variable) = `echo $line` =~ /(\w+)$/; The parentheses around $variable enforce list context, which assigns the only pa... note Fri, 27 Feb 2015 22:05:15 +0000 http://perlmonks.org/index.pl?node_id=1118130 1118130 1115757 2015-02-27 17:05:15 kroach Re: OSX File::Find avoid automounted file systems shmem http://perlmonks.org/index.pl?node_id=1118129 In the <a href="http://perldoc.perl.org/functions/stat.html">stat</a> there's a hint... Example: if (-x $file && (($d) = stat(_)) && $d ... note Fri, 27 Feb 2015 21:52:43 +0000 http://perlmonks.org/index.pl?node_id=1118129 1118129 510280 2015-02-27 16:52:43 shmem Re: Using indexing for faster lookup in large file roboticus http://perlmonks.org/index.pl?node_id=1118125 <a href="?node=anli_">anli_</a>: If the data sample is representative (in that there's a lot of repetition in the data), then you may be able to condense it into a much smaller data structure. If you post a large... note Fri, 27 Feb 2015 21:04:43 +0000 http://perlmonks.org/index.pl?node_id=1118125 1118125 533863 2015-02-27 16:04:43 roboticus RubberDuck RubberDuck http://perlmonks.org/index.pl?node_id=1118141 user Fri, 27 Feb 2015 23:56:57 +0000 http://perlmonks.org/index.pl?node_id=1118141 1118141 1118141 2015-02-27 18:56:57 RubberDuck fredlerouge fredlerouge http://perlmonks.org/index.pl?node_id=1118126 user Fri, 27 Feb 2015 21:08:09 +0000 http://perlmonks.org/index.pl?node_id=1118126 1118126 1118126 2015-02-27 16:08:09 fredlerouge