Re: mech->content match regex howto

2010-03-01 Thread raphael()
On Mon, Mar 1, 2010 at 11:27 PM, John W. Krahn wrote: > raphael() wrote: > >> Hi, >> > > Hello, > > > I am trying to understand WWW::Mechanize >> > > Did you also look at these pages: > > > http://search.cpan.org/~petdance/WWW-Mechanize-1.60/lib/WWW/Mechanize/Examples.pod

Script runs fine when passed args directly, not as stdin

2010-03-01 Thread Joseph L. Casale
Hi, I should state first I don't have the luxury of using Perl often and am super rusty:) I have a script that sends snmp commands to a switch either by passing args directly or as stdin. It works when passing them directly, but fails when feeding them as stdin, which is ultimately the way it need

Re: Need emergency help for ActivePerl HomeWork.

2010-03-01 Thread charlieR
On Mar 1, 2010, at 3:45 PM, J. D. wrote: This is my first post to the list but I doubt anyone here will do your homework. On 3/1/10, freefrank wrote: Any body could help me code these 4 modules on http://moodle.cs.ualberta.ca/mod/assignment/view.php?id=14448 great thanks! -- To unsubs

Re: Need emergency help for ActivePerl HomeWork.

2010-03-01 Thread J. D.
This is my first post to the list but I doubt anyone here will do your homework. On 3/1/10, freefrank wrote: > Any body could help me code these 4 modules on > http://moodle.cs.ualberta.ca/mod/assignment/view.php?id=14448 > great thanks! > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@

Need emergency help for ActivePerl HomeWork.

2010-03-01 Thread freefrank
Any body could help me code these 4 modules on http://moodle.cs.ualberta.ca/mod/assignment/view.php?id=14448 great thanks! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: mech->content match regex howto

2010-03-01 Thread John W. Krahn
raphael() wrote: Hi, Hello, I am trying to understand WWW::Mechanize Did you also look at these pages: http://search.cpan.org/~petdance/WWW-Mechanize-1.60/lib/WWW/Mechanize/Examples.pod http://search.cpan.org/~petdance/WWW-Mechanize-1.60/lib/WWW/Mechanize/FAQ.pod http://search.cpan.org/~pe

Re: File::Find NO RECURSION Howto

2010-03-01 Thread Shawn H Corey
Shlomi Fish wrote: > Well, Matt S. Trout shared his sentiments about "I cannot use CPAN" here: > > http://www.shadowcat.co.uk/blog/matt-s-trout/but-i-cant-use-cpan/ > Well, Matt is wrong. You can't always use CPAN. Yes, you can set it up so you can use it in development, but that doesn't mean

Re: File::Find NO RECURSION Howto

2010-03-01 Thread Shlomi Fish
On Monday 01 Mar 2010 15:00:26 raphael() wrote: > On Mon, Mar 1, 2010 at 6:18 PM, Shawn H Corey wrote: > > raphael() wrote: > > > Hi, > > > > > > How can I stop File::Find to go below current dir? i.e. no recursion. > > > > > > Although I can use glob or <*> to get file names in current dir. > >

Re: mech->content match regex howto

2010-03-01 Thread raphael()
On Mon, Mar 1, 2010 at 6:06 PM, Shawn H Corey wrote: > raphael() wrote: > > Hi, > > > > I am trying to understand WWW::Mechanize > > > > I understand that the downloaded content is stored in content(). > > Why am I not able to use a regex on it in scalar form? > > > > --code-- > > > > use

Re: File::Find NO RECURSION Howto

2010-03-01 Thread raphael()
On Mon, Mar 1, 2010 at 6:18 PM, Shawn H Corey wrote: > raphael() wrote: > > Hi, > > > > How can I stop File::Find to go below current dir? i.e. no recursion. > > > > Although I can use glob or <*> to get file names in current dir. > > But I wanted to know if File::Find has a maxdepth limit like l

Re: File::Find NO RECURSION Howto

2010-03-01 Thread Shlomi Fish
On Monday 01 Mar 2010 13:23:16 raphael() wrote: > Hi, > > How can I stop File::Find to go below current dir? i.e. no recursion. > > Although I can use glob or <*> to get file names in current dir. > But I wanted to know if File::Find has a maxdepth limit like linux "find". > Not, by itself, but

Re: File::Find NO RECURSION Howto

2010-03-01 Thread Shawn H Corey
raphael() wrote: > Hi, > > How can I stop File::Find to go below current dir? i.e. no recursion. > > Although I can use glob or <*> to get file names in current dir. > But I wanted to know if File::Find has a maxdepth limit like linux "find". > > The script I created uses a switch which decides

Re: mech->content match regex howto

2010-03-01 Thread Shawn H Corey
raphael() wrote: > Hi, > > I am trying to understand WWW::Mechanize > > I understand that the downloaded content is stored in content(). > Why am I not able to use a regex on it in scalar form? > > --code-- > > use strict; > use warnings; > use WWW::Mechanize; > > my $mech = WWW::Mecha

Re: question

2010-03-01 Thread Shlomi Fish
On Sunday 28 Feb 2010 22:08:21 Uri Guttman wrote: > > "SO" == S O writes: > SO> sorry guys i apologize for this question, > SO> how come when writing a program that these are not equivalent: > > SO> @files = readdir(D); > > SO> vs > > SO> readdir(D) = @files; > > my question is w

File::Find NO RECURSION Howto

2010-03-01 Thread raphael()
Hi, How can I stop File::Find to go below current dir? i.e. no recursion. Although I can use glob or <*> to get file names in current dir. But I wanted to know if File::Find has a maxdepth limit like linux "find". The script I created uses a switch which decides if recursion is allowed or not. I

mech->content match regex howto

2010-03-01 Thread raphael()
Hi, I am trying to understand WWW::Mechanize I understand that the downloaded content is stored in content(). Why am I not able to use a regex on it in scalar form? --code-- use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("http://checkip.dyndn