Limiting Toke::Parser

2008-06-27 Thread Clinton JAmes
Hi I'm trying to use Toke::Parse and would appreciate some advice. My html is something like this   advise you to                           apples                           oranges                           pears                           Smartshopper is provided by the http://www.fat.g

Re: Pass a wild card argument in Win32

2008-06-27 Thread Jeff Peng
On Sat, Jun 28, 2008 at 4:49 AM, Mike <[EMAIL PROTECTED]> wrote: > > I am able to pass regular arguments to perl but is it possible to get > the * operator to work like it does in Linux? No. Perl treats * as different as linux shell. > Like typing in *.cpp to > pass perl all .cpp files. Try thi

Pass a wild card argument in Win32

2008-06-27 Thread Mike
I've searched google and much of this group to find the answer to this problem with no luck. I am able to pass regular arguments to perl but is it possible to get the * operator to work like it does in Linux? Like typing in *.cpp to pass perl all .cpp files. I already fixed the issue getting the

Re: Using System to read mixed cased environment variables on Windows

2008-06-27 Thread Jeff Peng
On Sat, Jun 28, 2008 at 1:52 AM, ThierryLam <[EMAIL PROTECTED]> wrote: > > You'll notice that through system, the environment variable > ProgramFiles is all in upper case. Is there a way to preserve the > mixed case of the environment variable through system(...)? > Could use a regex, but maybe

Using System to read mixed cased environment variables on Windows

2008-06-27 Thread ThierryLam
On Windows XP Pro 32 bit, if I want to output environment variables PYTHON or ProgramFiles, I use the set command which output the following: C:\set PYTHON PYTHON=C:\Python24\python.exe C:\set ProgramFiles ProgramFiles=C:\Program Files If I used Perl 5.003_07 and use the system subroutine to show

Re: Check if directory is empty on Win32

2008-06-27 Thread Paul Lalli
On Jun 26, 5:50 pm, [EMAIL PROTECTED] (Leonid L) wrote: > Many of the proposed solutions I've found on Google do not work for > me, perhaps because they assume Unix/Linux host. Or, perhaps because you're doing something wrong? How about posting one of these methods that "don't work", so we can e

Re: Why doesn't LWP get html file?

2008-06-27 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > $html has nothing from the following code. Could someone help me? > Thanks. Always use strict; use warnings; and declare all your variables with 'my'. That way you can fix many coding errors yourself without having to ask for help. > use LWP; > use URI; You don

Re: isolating text in a string

2008-06-27 Thread John W. Krahn
Tim Bowden wrote: On Tue, 2008-06-24 at 19:37 -0700, John W. Krahn wrote: Perhaps: my ( $snippet ) = $string =~ /\w\["([^"]+)",/; $string =~ /\w\["([^"]+)",/; my $snippet = $1; does the trick. I can see If I don't get on top of regex's I'm seriously restricting the power of perl. Starting

Re: Why doesn't LWP get html file?

2008-06-27 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: $html has nothing from the following code. Hard to tell what the problem is - the code works for me. Maybe you ought to try something simpler? #!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $Surfurl = 'http://us.randstad.com/webapp/internet/servlet/