Re: Subroutine doesn't write to file

2010-04-12 Thread Philip Potter
On 12 April 2010 16:39, Uri Guttman wrote: >> "PP" == Philip Potter writes: > >  PP> On 12 April 2010 11:34, Shlomi Fish wrote: >  >> Hi Uri and Philip (and Abimael), >  >> On Monday 12 Apr 2010 10:32:36 Uri Guttman wrote: >  >>>   PP> Where did I say PBP was always right? I just didn't want

Re: Subroutine doesn't write to file

2010-04-12 Thread Uri Guttman
> "PP" == Philip Potter writes: PP> On 12 April 2010 11:34, Shlomi Fish wrote: >> Hi Uri and Philip (and Abimael), >> On Monday 12 Apr 2010 10:32:36 Uri Guttman wrote: >>>   PP> Where did I say PBP was always right? I just didn't want to let your >>>   PP> style argument be the onl

Re: Subroutine doesn't write to file

2010-04-12 Thread Shlomi Fish
On Monday 12 Apr 2010 13:59:31 Philip Potter wrote: > On 12 April 2010 11:34, Shlomi Fish wrote: > > Hi Uri and Philip (and Abimael), > > > > On Monday 12 Apr 2010 10:32:36 Uri Guttman wrote: > >> PP> Where did I say PBP was always right? I just didn't want to let > >> your PP> style argument b

Re: Subroutine doesn't write to file

2010-04-12 Thread Philip Potter
On 12 April 2010 11:34, Shlomi Fish wrote: > Hi Uri and Philip (and Abimael), > On Monday 12 Apr 2010 10:32:36 Uri Guttman wrote: >>   PP> Where did I say PBP was always right? I just didn't want to let your >>   PP> style argument be the only one in this thread, since there are >> clearly PP> peo

Re: Subroutine doesn't write to file

2010-04-12 Thread Shlomi Fish
Hi Uri and Philip (and Abimael), On Monday 12 Apr 2010 10:32:36 Uri Guttman wrote: > > "PP" == Philip Potter writes: > PP> On 12 April 2010 07:55, Uri Guttman wrote: > >>> "PP" == Philip Potter writes: > >> PP> On 12 April 2010 04:31, Uri Guttman wrote: > >> >>> "AM" == A

Re: Subroutine doesn't write to file

2010-04-12 Thread Uri Guttman
> "PP" == Philip Potter writes: PP> On 12 April 2010 07:55, Uri Guttman wrote: >>> "PP" == Philip Potter writes: >> >>  PP> On 12 April 2010 04:31, Uri Guttman wrote: >>  >>> "AM" == Abimael Martinez writes: >>  >> >>  >>  AM>   print {$tmp} "$div_start"; >>  >>

Re: Subroutine doesn't write to file

2010-04-12 Thread Philip Potter
On 12 April 2010 07:55, Uri Guttman wrote: >> "PP" == Philip Potter writes: > >  PP> On 12 April 2010 04:31, Uri Guttman wrote: >  >>> "AM" == Abimael Martinez writes: >  >> >  >>  AM>   print {$tmp} "$div_start"; >  >> >  >> no need for the {} around a single scalar handle. > >  PP> Bu

Re: Subroutine doesn't write to file

2010-04-11 Thread Uri Guttman
> "PP" == Philip Potter writes: PP> On 12 April 2010 04:31, Uri Guttman wrote: >>> "AM" == Abimael Martinez writes: >> >>  AM>   print {$tmp} "$div_start"; >> >> no need for the {} around a single scalar handle. PP> But it *does* comply with Perl Best Practices #136.

Re: Subroutine doesn't write to file

2010-04-11 Thread Philip Potter
On 12 April 2010 04:31, Uri Guttman wrote: >> "AM" == Abimael Martinez writes: > >  AM>   print {$tmp} "$div_start"; > > no need for the {} around a single scalar handle. But it *does* comply with Perl Best Practices #136. * It makes the filehandle obviously different from the other argumen

Re: Subroutine doesn't write to file

2010-04-11 Thread John W. Krahn
Abimael Martinez wrote: Hi, Hello, I am having some problems making this little script work, it is supposed glob files from current dir, and add stuff at the top and bottom of such files. I am also unshure how the "autoflush" works. use strict; use IO::File; use IO::Handle qw( ); my @

Re: Subroutine doesn't write to file

2010-04-11 Thread Uri Guttman
> "AM" == Abimael Martinez writes: AM> Hi, AM> I am having some problems making this little script work, it is supposed AM> glob files from current dir, and add stuff at the top and bottom of such AM> files. I am also unshure how the "autoflush" works. AM> use strict; AM> u

Subroutine doesn't write to file

2010-04-11 Thread Abimael Martinez
Hi, I am having some problems making this little script work, it is supposed glob files from current dir, and add stuff at the top and bottom of such files. I am also unshure how the "autoflush" works. use strict; use IO::File; use IO::Handle qw( ); my @web_docs = <*.html>; my @excluded =