Any Good SCM tool to manage Perl Code locally

2010-03-13 Thread Parag Kalra
Hi All, Although it is not related to Perl directly and might be little strange question but still thought of consulting Perl gurus. Here is the thing - I mainly code in Perl and Bash and I don't use any SCM tool. And the reason I don't use it is because even if I configure a SCM server - I shoul

would like "pure" Perl solution to count of files in directory (nested subdirectories too)

2010-03-13 Thread Kenneth Wolcott
Hi; Re: would like "pure" Perl solution to count of files in directory (nested subdirectories too) I would like to have a "pure" Perl solution to "find dir | wc -l" find2perl x * #! /usr/bin/perl -w eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; #$ru

Re: Read line by line from a file & search each line on another file

2010-03-13 Thread John W. Krahn
manu wrote: Want to do a perl program - Read from file 1 - line1, line2etc Search line1 on file2 (all lines) Then Search line 2 on file 2... Ouput results of search. perldoc -q "How can I read in an entire file all at once" perldoc -q "How do I efficiently match many regular expressions

Re: process restriction

2010-03-13 Thread Shawn H Corey
perlperl wrote: > Has anyone seen "not enough space" error while executing command in > perl scrip > > $processid = open OUT, "$cmd 2>&1 |" or die "$!" ; > > is there any restriction on maximum number of process running on > solaris? > > The normal error message is, "too many processes" Th

Re: Read line by line from a file & search each line on another file

2010-03-13 Thread Shawn H Corey
manu wrote: > Want to do a perl program - > > Read from file 1 - line1, line2etc > Search line1 on file2 (all lines) > Then Search line 2 on file 2... > > Ouput results of search. > > What code do you have so far? -- Just my 0.0002 million dollars worth, Shawn Programming is as m

process restriction

2010-03-13 Thread perlperl
Has anyone seen "not enough space" error while executing command in perl scrip $processid = open OUT, "$cmd 2>&1 |" or die "$!" ; is there any restriction on maximum number of process running on solaris? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-ma

Read line by line from a file & search each line on another file

2010-03-13 Thread manu
Want to do a perl program - Read from file 1 - line1, line2etc Search line1 on file2 (all lines) Then Search line 2 on file 2... Ouput results of search. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.or

Re: ':content_cb' give what to subroutine?

2010-03-13 Thread raphael()
On Sat, Mar 13, 2010 at 12:31 AM, Uri Guttman wrote: > > "r" == raphael() writes: > > r> Hi, > r> -- CODE -- > > r> use strict; > r> use warnings; > r> use WWW::Mechanize; > r> use File::Basename; > r> use Number::Bytes::Human qw(format_bytes); > > r> # CODE GOES ON HERE TIL

Re: ':content_cb' give what to subroutine?

2010-03-13 Thread Peter Scott
On Fri, 12 Mar 2010 17:38:30 +0530, raphael() wrote: > use WWW::Mechanize; > my $b; > $wmc->get( > "$link", > ':content_cb' => sub { > > I got this snippet on perlmonks. It's a kind of progress bar. I want to > know what is being passed to @_ by ':content_cb' ?? Look in the documentation for LWP: