RE: I need some help with matching something

2006-09-20 Thread Lee Goddard
> I need to find every ocuring "... blok in a text, > even If this ocurs multiple times on 1 line. If you're doing HTML it's worth looking HTML::TokeParser for a quick and easy and generally reliable means of extracting the contents of the 'bold' element: great POD, too -- this is a slightly

Re: I need some help ...

2001-06-25 Thread Aaron Craig
At 11:43 25.06.2001 +0200, [EMAIL PROTECTED] wrote: >En réponse à Aaron Craig <[EMAIL PROTECTED]>: > > > foreach my $fichier (@fichiers) > > { > > my $result = (-e $fichier)? "$fichier fait (stat $fichier)[7] > > octets\n" : > > "$fichier inexistant \n"; > >

Re: I need some help ...

2001-06-25 Thread perl
En réponse à Aaron Craig <[EMAIL PROTECTED]>: > I would do something like this: > > use strict; # very important, and saves a lot of headache! > > open (SERV, "c:\\perl\\bin\\liste.txt") || die "Could not open > liste.txt: > $!"; # added error checking > my @serveurs = ; > close (SERV); > open

Re: I need some help ...

2001-06-25 Thread Aaron Craig
I would do something like this: use strict; # very important, and saves a lot of headache! open (SERV, "c:\\perl\\bin\\liste.txt") || die "Could not open liste.txt: $!"; # added error checking my @serveurs = ; close (SERV); open (RESULT, ">>c:\\resultat.txt") || die "Could not open resultat.txt

Re: I need some help ...

2001-06-25 Thread Jos Boumans
well, first of all you want to take this open statement out of the 'for loop' and declare it before the loop starts: $resultat="c:\\resultat.txt"; open (RESULT, ">>$resultat"); not sure why the file existance check isn't working.. you might want to add some print statements, or maybe try and open