Re: Hi, newbie question

2002-07-24 Thread Marco Antonio Valenzuela Escárcega
On Mon, 2002-07-22 at 14:41, Desmond Lee wrote: > Hi guys > > I'm trying to read a file, but it's just one massive line. I think that the > ^M is suppose to be an indication that that's wehre teh newline is suppose > to be. I've tried to replace ^M with a newline by executing something that i

RE: Interpreter

2002-07-23 Thread Marco Antonio Valenzuela Escárcega
. suerte! Marco Antonio Valenzuela Escárcega On Mon, 2002-07-22 at 11:16, Omar Shariff wrote: > Hi Timothy > > --- Timothy Johnson <[EMAIL PROTECTED]> escribió: > > > > Para clarificacion, estas buscando la programa que > > interpreta los scripts > > creado en

Re: script too slow?

2002-07-13 Thread Marco Antonio Valenzuela Escárcega
maybe you should check this out: http://search.cpan.org/search?dist=RTF-Tokenizer http://search.cpan.org/search?dist=RTF-Parser On Sat, 2002-07-13 at 19:35, Paul Tremblay wrote: > I just finished my first version of a script that converts rtf to > xml and was wondering if I went about writing it

Re: a real beginner's question, pt. 2

2002-07-08 Thread Marco Antonio Valenzuela Escárcega
7;', map { $table{$_} || $_ } split //, $1).'}'; >exg; or you can try anything else, the point is that using the /e modifier with s/// you can use any piece of code that works for you as the replacement of the substitution Marco Antonio Valenzuela Escárcega On Mo

Re: real beginner's question (s|{(.*?)}|$1=~ tr///|xg)

2002-07-08 Thread Marco Antonio Valenzuela Escárcega
ot;kdkdkiwiwdkdkdk {iwidkwidkw =~ tr/iw/JX/} kdkdkdwiwiwkdkdk > {kdkdikdkddk =~ tr/iw/JX/}" that's because you are substituting (.*?) for "$1 =~ tr/iw/JX/" as a string, if you want to evaluate it as code, you need to add an e modifier to s///, (and you can get rid of the x beca

RE: if-statement and grep in one go

2002-06-25 Thread Marco Antonio Valenzuela Escárcega
On Tue, 2002-06-25 at 03:28, David vd Geer Inhuur tbv IPlib wrote: > > Hello, > > Thanks for the solution Bob. > Changed some stuff and have 2 questions open. > > my $line; > my (%u, %g); > open(FILE, "< ${dir}/user.perm") or print "Failed opening file $!"; ## 1 > while ($line =

Re: To Croak or Undef?

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 21:54, Marco Antonio Valenzuela Escárcega wrote: > On Sat, 2002-06-22 at 21:27, drieux wrote: > > > > volks, > > > > I'm playing around with a little perl module and I came > > across to different solutions - thought I would ask for

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 21:42, Shawn wrote: > >>> On Sat, 2002-06-22 at 13:53, Shawn wrote: > Is there a reason for this, and is there a way I can see what the > actuall values are? The values are passed just fine to the sub routines, > I just want my debug log to show that values

Re: To Croak or Undef?

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 21:27, drieux wrote: > > volks, > > I'm playing around with a little perl module and I came > across to different solutions - thought I would ask for > opinions as to which would be more Kosher - so why not > ask folks who might have an opinion: > > Plan A: The simple 'und

Re: calculating disk space in perl

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 20:34, J. Lundeen wrote: > Hello, > > I'm writing a control panel for my web hosting company. I need to be > able to calculate how much disk space a user is taking up in their home > directory and its sub-directories, so that I can compare against the > "allowed" disk space

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 13:53, Shawn wrote: > Hello all, > I am working on a script that I have several debug statements that try to tell me >what is contained in a hash referrence. While I am tailing the log file, the hashes >derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual ref

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 13:53, Shawn wrote: > Hello all, > I am working on a script that I have several debug statements that try to tell me >what is contained in a hash referrence. While I am tailing the log file, the hashes >derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual ref

Fwd: Re: Please explain forking

2002-06-20 Thread Marco Antonio Valenzuela Escárcega
On Thu, 2002-06-20 at 23:30, Langa Kentane wrote: > Greetings, > I wish to use the fork() function on one of my scripts. I would like more > clarity on the way it works. > > Take for instance the ff code: > > Sub mysub > { > while () > If ($_ eq "SCANME") > { > fo

Re: Formatting

2002-06-20 Thread Marco Antonio Valenzuela Escárcega
On Thu, 2002-06-20 at 22:42, Shishir K. Singh wrote: > Hi, hi > > I need to format a string in a fixed width field. The string may be less than the >length of the format, or may be greater. If less, then it should get padded with >spaces (left or right justified , like using - in sprintf), if