Re: real beginner help needed

2002-05-23 Thread Tagore Smith
fe a little easier. Anyway, I'm sorry to say that I think that if you want this script to work and be safe, you're going to have to rewrite it, at least partially. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to match next line?

2002-05-22 Thread Tagore Smith
BTW, one thing you might consider is that there may be duplicate email addresses that differ only in case. You might want to check for that. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to match next line?

2002-05-22 Thread Tagore Smith
> my @sorted = sort(@slurped); # Create a sorted list > my $i; > my $j; > foreach ($i = 0; $i <= @sorted; $i++) { > > chomp($i); > $j = $i++; # Only finds 1 address beyond $i > > if ($sorted[$i] =~ /$j/) # Compare this line w/next line > { > next; # If i

Re: Counting the elements of an array

2002-05-20 Thread Tagore Smith
eople will find it unclear only because of a background in C. I think people may also find it unclear because of a background in functional languages (whence map comes). I like map to be free of side effects even when used in a non-void context (particularly then actually- at least when you use it in a

Re: Counting the elements of an array

2002-05-19 Thread Tagore Smith
drieux wrote: > On Saturday, May 18, 2002, at 07:09 , Tagore Smith wrote: > > > You're on the right track. Try something like this: > > > > my @array=("aaa", "aaa", "bbb", "bbb", "aaa", "ccc",

Re: Counting the elements of an array

2002-05-18 Thread Tagore Smith
ng foreach $item(@array) { > and here to increase a counter, but finally, I couldn't solve it. You're on the right track. Try something like this: my @array=("aaa", "aaa", "bbb", "bbb", "aaa", "ccc", "aaa", "bbb", "ccc") my %hash; foreach my $item (@array){ $hash{$item}++; } Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 1 or 2 decimals

2002-04-01 Thread Tagore Smith
tf "%.2f", $var1; print $roundedvar; Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to run it without a subroutine

2002-03-27 Thread Tagore Smith
olutions- maybe someone with a lot of esperience doing file uploads through cgi will be willing to. Be very careful about putting a file upload script on a public webserver- make sure that someone who really knows what they're doing has a good look at it before you do. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why I can't print the file?

2002-03-26 Thread Tagore Smith
t; Thank you for any help. > I am trying to learn this but I just can't. It takes time, especially if Perl is your first programming language. But reading the docs helps. See perldoc -f read. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mysterious leading spaces

2002-03-13 Thread Tagore Smith
the code where @Draw is initialized it's hard to know, but if you are doing one of the above, that's the problem. Hope that helps. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: mysterious leading spaces

2002-03-12 Thread Tagore Smith
interpolation inside double quotes? print @Array; and print "@Array";. are different. The second will separate the items with spaces. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: survey to excel

2002-03-08 Thread Tagore Smith
ms (within your browser) at: http://www.perl.com/CPAN/modules/00modlist.long.html Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Very serious security hole in your script

2002-02-26 Thread Tagore Smith
at displays the available filenames, but submits the corresponding integer as the cgi parameter. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]