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-08-21 09:12:14 rss,clean Wed Aug 20 23:12:14 2014 30 20140820231214 Wed Aug 20 23:12:14 2014 http://perlmonks.org/ Anonymous Monk while loop question adriang http://perlmonks.org/index.pl?node_id=1098203 Hi all, I didn't find any info about a while loop with a "statement that will be executed at the end" (no more true). For exemple: while ( my $key=keys(%hash) { last... perlquestion Thu, 21 Aug 2014 08:00:58 +0000 http://perlmonks.org/index.pl?node_id=1098203 1098203 1088431 2014-08-21 04:00:58 adriang How to execute a shell command from a CGI script antovinraj http://perlmonks.org/index.pl?node_id=1098193 Hi All, I want to access all the changes submitted in perforce and to display in the web page for a particular user. CGI Script: #!/usr/bin/perl -wT use CGI; $cgi = CGI->new;... perlquestion Thu, 21 Aug 2014 06:44:14 +0000 http://perlmonks.org/index.pl?node_id=1098193 1098193 551120 2014-08-21 02:44:14 antovinraj Search based on user input and return values hellohello1 http://perlmonks.org/index.pl?node_id=1098191 Hi, I have a question regarding about hash. I have two text files, userinput.txt (USERINPUT) and database.txt (CURINFILE). In the userinput.txt, it has all the values the user want to search using tha... perlquestion Thu, 21 Aug 2014 06:22:39 +0000 http://perlmonks.org/index.pl?node_id=1098191 1098191 1071408 2014-08-21 02:22:39 hellohello1 pdftk functionality sumalatha http://perlmonks.org/index.pl?node_id=1098189 i'am new to perl programming and tiring to implement a function to perform pdf file get encrypted and save in server and pdf encrypted file need to decrypted , when it is downloaded by a authorised... perlquestion Thu, 21 Aug 2014 04:49:58 +0000 http://perlmonks.org/index.pl?node_id=1098189 1098189 1098187 2014-08-21 00:49:58 sumalatha Re: Scrape Google's Image Search abhihimself http://perlmonks.org/index.pl?node_id=1098206 Hello, Thanks for your responses :). I will try another approaches like Google API to work this out. ... note Thu, 21 Aug 2014 08:16:00 +0000 http://perlmonks.org/index.pl?node_id=1098206 1098206 967237 2014-08-21 04:16:00 abhihimself Re: while loop question Anonymous Monk http://perlmonks.org/index.pl?node_id=1098205 Funny :) print "before\n"; while( 1 ){ print for 1 .. 10; last } print "after\n"; You can write it as print "before\n"; while( 1 ){ print for 1 .. 10; last } print "after\n"; it... note Thu, 21 Aug 2014 08:05:31 +0000 http://perlmonks.org/index.pl?node_id=1098205 1098205 961 2014-08-21 04:05:31 Anonymous Monk Re: while loop question choroba http://perlmonks.org/index.pl?node_id=1098204 <a href="?node_id=1038843">Perl vs. Python for prime numbers</a> might be related. &#1604;&#1405;&#4285; &#6514;&#6482;&#9898;&#10186... note Thu, 21 Aug 2014 08:04:12 +0000 http://perlmonks.org/index.pl?node_id=1098204 1098204 832495 2014-08-21 04:04:12 choroba Re^3: How to execute a shell command from a CGI script marto http://perlmonks.org/index.pl?node_id=1098202 You are missing the more serious point. A null value is the least of your concerns, imagine what commands someone could make this run, and you execute them via sudo!... note Thu, 21 Aug 2014 07:54:57 +0000 http://perlmonks.org/index.pl?node_id=1098202 1098202 324763 2014-08-21 03:54:57 marto Re^2: File reade and recreate adriang http://perlmonks.org/index.pl?node_id=1098201 Thanks for the suggestion open($file_read,"+; $count++; seek($file_read, 0, "0"... note Thu, 21 Aug 2014 07:53:11 +0000 http://perlmonks.org/index.pl?node_id=1098201 1098201 1088431 2014-08-21 03:53:11 adriang Re^3: How to execute a shell command from a CGI script choroba http://perlmonks.org/index.pl?node_id=1098200 ; rm -rf / is much more dangerous than a null value. &#1604;&#1405;&#4285; &#... note Thu, 21 Aug 2014 07:52:38 +0000 http://perlmonks.org/index.pl?node_id=1098200 1098200 832495 2014-08-21 03:52:38 choroba Re: Uninitialized value in substr command choroba http://perlmonks.org/index.pl?node_id=1098199 In your script, the >456 header is missing before the second sequence. Here's how I would solve your task without <a href="http://search.cpan.org/perldoc?BioPerl">BioPerl</a>: #!/usr/bin/perl use warnings; use strict; my @conti... note Thu, 21 Aug 2014 07:48:40 +0000 http://perlmonks.org/index.pl?node_id=1098199 1098199 832495 2014-08-21 03:48:40 choroba Re: Search based on user input and return values (more subs) Anonymous Monk http://perlmonks.org/index.pl?node_id=1098196 Everything works ok until ... Or is my coding wrong? ... I appreciate for some help/advice. *cough* subs , more subs, not too many nesting loops, code that compiles, minimal code foc... note Thu, 21 Aug 2014 07:26:36 +0000 http://perlmonks.org/index.pl?node_id=1098196 1098196 961 2014-08-21 03:26:36 Anonymous Monk Re^2: How to execute a shell command from a CGI script antovinraj http://perlmonks.org/index.pl?node_id=1098195 I have been validating in the script whether any null values are there. I have removed that code, so that it can easily understand. ... note Thu, 21 Aug 2014 06:51:38 +0000 http://perlmonks.org/index.pl?node_id=1098195 1098195 551120 2014-08-21 02:51:38 antovinraj Re: How to execute a shell command from a CGI script Anonymous Monk http://perlmonks.org/index.pl?node_id=1098194 Why are you not validating my $user = $form{'user'}; ? Thats dangerous... note Thu, 21 Aug 2014 06:48:22 +0000 http://perlmonks.org/index.pl?node_id=1098194 1098194 961 2014-08-21 02:48:22 Anonymous Monk Re^2: pdftk functionality Anonymous Monk http://perlmonks.org/index.pl?node_id=1098192 CPAN Module "PDF::Tk" itself is a Perl integration for the pdf toolkit (pdftk). is it necessary to install pdftk binary from https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/. ... note Thu, 21 Aug 2014 06:27:22 +0000 http://perlmonks.org/index.pl?node_id=1098192 1098192 961 2014-08-21 02:27:22 Anonymous Monk Re: pdftk functionality NetWallah http://perlmonks.org/index.pl?node_id=1098190 It means that you need to download and install the pdftk binary from <a href="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/">https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/</a>, and make sure it installs at /usr/bin/pdftk. ... note Thu, 21 Aug 2014 04:55:13 +0000 http://perlmonks.org/index.pl?node_id=1098190 1098190 159887 2014-08-21 00:55:13 NetWallah Alisha Alisha http://perlmonks.org/index.pl?node_id=1098197 Accountant | Administratiekantoor... user Thu, 21 Aug 2014 07:46:40 +0000 http://perlmonks.org/index.pl?node_id=1098197 1098197 1098197 2014-08-21 03:46:40 Alisha sumalatha sumalatha http://perlmonks.org/index.pl?node_id=1098187 user Thu, 21 Aug 2014 04:28:12 +0000 http://perlmonks.org/index.pl?node_id=1098187 1098187 1098187 2014-08-21 00:28:12 sumalatha