Re: Auto-initialising a client-side download

2001-10-30 Thread RaFaL Pocztarski
y 1996) Sections: 10.5 Content-Type, 7.2.1 Type, 3.6 Media Types http://www.w3.org/Protocols/rfc1945/rfc1945.txt - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Path of root directory on production server

2001-10-29 Thread RaFaL Pocztarski
int. We were inventing many different ways how to do it in Perl, and forgot that there's a possibility to interact with a human being. It's a sign, that we spend too much time with machines, with not enough human-to-human interaction. This kind of getting data is called social engineeri

Re: Printing Hash Keys

2001-10-29 Thread RaFaL Pocztarski
"Brett W. McCoy" wrote: > > On Thu, 25 Oct 2001, RaFaL Pocztarski wrote: > > > You can always use http://www.perldoc.com/ but it's hard to believe that > > any version of perl comes without perldoc, however I don't know MacPerl > > at all. Try to

Re: Auto-initialising a client-side download

2001-10-29 Thread RaFaL Pocztarski
thing if I did't want to comment or answer it? - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: small question?

2001-10-29 Thread RaFaL Pocztarski
messed up.. When you use eq operator, everything is automatically strigified. > my brain hurts...long day That's normal with Perl. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using the require command with perl

2001-10-29 Thread RaFaL Pocztarski
re you sure you know what's require for? Read perldoc -f require http://www.perldoc.com/perl5.6.1/pod/func/require.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing Hash Keys

2001-10-29 Thread RaFaL Pocztarski
%params is a sorted list of keys in %params hash. keys %params is a list of keys in random order. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Simple Guestbook "CGI.pm in @INC"??? I use Windows not UNIX

2001-10-25 Thread RaFaL Pocztarski
works on a lot of other platforms. See http://testers.cpan.org/search?request=dist&dist=CGI.pm If you can't extract the tarball, get tar and gzip: http://www.gnu.org/software/tar/tar.html http://www.gnu.org/software/gzip/gzip.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsu

Re: read I/O function

2001-10-25 Thread RaFaL Pocztarski
the entire file into your $buffer, instead use this code: { local $/; $buffer = } If your file is very big then maybe you should process it line by line: while(){ # do something with the line in $_ } - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROT

Re: Printing Hash Keys

2001-10-25 Thread RaFaL Pocztarski
t > though. You can always use http://www.perldoc.com/ but it's hard to believe that any version of perl comes without perldoc, however I don't know MacPerl at all. Try to find any info about perldoc in MacPerl docs or website. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail:

Re: Auto-initialising a client-side download

2001-10-25 Thread RaFaL Pocztarski
s the idea I suggested work for you? - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Dir Denied

2001-10-25 Thread RaFaL Pocztarski
physical path to your directory, where you have your secret files. That way only localhost is allowed to view those files. Is that what you need? - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Printing Hash Keys

2001-10-24 Thread RaFaL Pocztarski
Shannon Murdoch wrote: > > What everyone has said so far is ways to list all the VALUES contained in a > hash array, what I need to do is list all the KEYS contained in the hash > array-with a tab (\t) between each. print join "\t", sort keys %hashname; - RaFaL Poczta

Re: Auto-initialising a client-side download

2001-10-24 Thread RaFaL Pocztarski
good to have an online searchable database of this > > newsgroup, so you don't have to download every message to see if your > > question has already been answered a few days or weeks ago! =) There is archive of this mailing list here: http:[EMAIL PROTECTED]/ - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread RaFaL Pocztarski
my include path. Run this command from your server's shell: perl -e 'print"@INC\n"' and if you see only a dot, than contact your admin and ask about it. If you get "Can't locate CGI.pm" with a valid @INC, then you have to install CGI.pm, download it fro

Re: PHP lookalike

2001-10-23 Thread RaFaL Pocztarski
8/21/templating.html See also: http://www.engelschall.com/sw/eperl/ http://perl.apache.org/embperl/ http://www.masonhq.com/ http://www.apache-asp.org/ > Use this as postfix for the generic perl-script to say the > perl-script is done. is already used for HTML comments. - RaFaL Pocztarski

Re: Need help desperately on codes!

2001-10-23 Thread RaFaL Pocztarski
an help you, and in fact I do it quite often, contact me and I'll tell you my rates. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Path of root directory on production server

2001-10-23 Thread RaFaL Pocztarski
tom poe wrote: > #!/usr/bin/perl -w > print "Content-type: text/html\n\n"; > print "Hello World"; > $pwd = `pwd`; > print "The Password is: $pwd\n"; > > The single quotes around pwd on the right side of the = sign, are actually > back-tics. This won't work if the server doesn't chdir to director

Re: subject

2001-10-22 Thread RaFaL Pocztarski
every message in the same place, with only different subject. And most of them are about Perl so "[Perl]" in the subject wouldn't help much anyway. > do u know another perl mailing list...? This one is only for CGI-related beginners Perl problems. See http://lists.perl.org/ for more li

Re: PERL reference question

2001-10-21 Thread RaFaL Pocztarski
ix{@keys}; Is that what you need? In Perl 5 the funny character ($, @, %) means what the expression evaluates to. Hash slice is a list, so it starts with @ sign. However in Perl 6 this will change. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: need help in getting background images to show up in a cgi script

2001-10-18 Thread RaFaL Pocztarski
ons.jpg"; > print header, start_html(-title=>"$TITLE", -background=>"$WALL"), It's not a Perl but HTML question. When a browser gets it will try to download http://www.hostingohio.com/home/admin/hostingohio-www/balloons.jpg not http://www.hostingohio.com/bal

Re: Parsing HTTP links

2001-10-18 Thread RaFaL Pocztarski
Dave Newton wrote: > RaFaL Pocztarski wrote: > > [EMAIL PROTECTED] wrote: > >> I need to parse out all http links stored in a local file. > > You mean HTML links. > > Actually, while the answer doesn't change, we don't know that > this is what he meant.

Re: Free Mac Private Perl server

2001-10-17 Thread RaFaL Pocztarski
ught the links I gave you was what you needed. Maybe using some cheap old box with Linux, Apache, perl etc., as a second machine for testing would be a good solution for you? Just an idea, I probably would do so if I couldn't have Apache and perl on my desktop machine. - RaFaL Pocztarski, [EMA

Re: Free Mac Private Perl server

2001-10-17 Thread RaFaL Pocztarski
g Mac OS X than probably you should be able to use source distribution: http://www.perl.com/pub/a/language/info/software.html#stable - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi-page CGI Form

2001-10-16 Thread RaFaL Pocztarski
erent bits of info and confirming). use CGI::Application; http://search.cpan.org/search?dist=CGI-Application Read "Using CGI::Application" article for good explanation and examples: http://www.perl.com/pub/a/2001/06/05/cgi.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscrib

Re: user name

2001-10-16 Thread RaFaL Pocztarski
n white space character (the /\S/ pattern matches) in the answer (that way it will keep asking if someone enter only space or tabulator, etc.). chomp strips the newline ("enter") character at the end of $name. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parsing HTTP links

2001-10-16 Thread RaFaL Pocztarski
r from: http://search.cpan.org/search?dist=HTML-SimpleLinkExtor - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: somone please help

2001-10-16 Thread RaFaL Pocztarski
Gareth Londt wrote: > can someone please help me with this problem? Well... It strongly depends on your problem.. :) - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: (simple) cgi.pm question

2001-10-16 Thread RaFaL Pocztarski
ams{q100}"; # 100 times "Perl is designed to give you several ways to do anything, so consider picking the most readable one." - Larry Wall - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Read /etc/shadow...

2001-10-15 Thread RaFaL Pocztarski
ache-Htpasswd Apache::Htpasswd module is great for interaction with Apache .htpasswd files, but it's also great for manipulating passwords not used by Apache. Also use taint mode (-T switch), like this in shebang line: #!/usr/bin/perl -wT in your scripts, it will help you to make them safer. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: to activate URL

2001-10-15 Thread RaFaL Pocztarski
See also perldoc CGI: http://www.perldoc.com/perl5.6.1/lib/CGI.html#CREATING-STANDARD-HTML-ELEMENTS- - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: flock()

2001-10-15 Thread RaFaL Pocztarski
ose the file. That way you won't fall into an infinite loop and your file will be locked shortly, so the other processes won't have to wait very long for their locks. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: E-mail with the -T switch

2001-10-11 Thread RaFaL Pocztarski
it: delete $ENV{PATH}; For more datails, see also: perldoc perlsec (search for section titled "Cleaning Up Your Path") Or better, use Mail::Sender, it doesn't need any external programs. http://search.cpan.org/search?dist=Mail-Sender - RaFaL Pocztarski, [EMAIL PROTECTED] --

Re: where to get modules? and any gui for win32?

2001-10-10 Thread RaFaL Pocztarski
Eric Wang wrote: > Where do I get some of these cool modules like www, DBI... etc? http://search.cpan.org/ > and is there a module to write gui programs using perl in win32 > environmrnt? (WINNT or 2k) http://search.cpan.org/search?dist=Wx http://www.wxwindows.org/ - RaFaL Pocztarsk

Re: Looking for more elegant way to generate combinations of numbers

2001-10-10 Thread RaFaL Pocztarski
RaFaL Pocztarski wrote: > Chris Spurgeon wrote: > > > (...) It strikes me that this > > could have been more elegantly done with some sort of recursive function, > > but I couldn't figure out how. Any ideas? > > (...) And now, my suggestion: > > 8&l

Re: Looking for more elegant way to generate combinations of numbers

2001-10-08 Thread RaFaL Pocztarski
o any number you want, but more than 40 can take centuries, so prepare for waiting. ;) > Thanks in advance, one and all, > here's my original code > (...) You should consider participating in Obfuscated Perl Contest. :) - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: String question...

2001-10-08 Thread RaFaL Pocztarski
guess using the most common password cracking techniques. If you only check string length then someone can use something like abcdefgh or a word from dictionary which can be long but very easy to guess. You can find more info about Cracklib on Alec Muffett's home page: http://www.users.dircon.co