Re: print<

2001-10-31 Thread RaFaL Pocztarski
Etienne Marcotte wrote: > > print< or print<<"END"; > > it gives me a warning "Use of uninitalized value at (filename) > (linenumber) How does your text look like? Remember that variables are interpolated in your text, if you don't want that use

Re: sort

2001-10-29 Thread RaFaL Pocztarski
nafiseh saberi wrote: > > thx...but do you know how can sort increasingly or > decreasingly ??? Just use {$a cmp $b} or {$b cmp $a} for alphabetical and {$a <=> $b} or {$b <=> $a} for numerical order. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail:

Re: How i use a external library ?

2001-10-29 Thread RaFaL Pocztarski
Pathologically Polluting Perl: http://www.perl.com/pub/a/2001/02/inline.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: workaround for unix2dos system command

2001-10-25 Thread RaFaL Pocztarski
oneliner in Perl to convert text files see http://groups.yahoo.com/group/perl-beginner/message/6263 - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie: Need string substitution

2001-10-25 Thread RaFaL Pocztarski
-e 's/\bON ERROR\b/*ON ERROR/ig' *.prg it will process all *.prg files in current directory, making backups of originals in .bak files. Is that what you need? - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Outputting errors

2001-10-24 Thread RaFaL Pocztarski
Etienne Marcotte wrote: > When running a script from a browser, is it possible to actually see the > error messages? use CGI::Carp qw(fatalsToBrowser); or use CGI::Carp qw(fatalsToBrowser warningsToBrowser); see perldoc CGI::Carp - RaFaL Pocztarski, [EMAIL PROTECTED]

Re: Checking logs in NT

2001-10-23 Thread RaFaL Pocztarski
e. (Well, now that IS politically correct) Generally when I get any not GNU-based Unix system in my hands, I start from installing the GNU tools, which is probably even a better idea under NT which AFAIK lacks such tools for command-line text processing (correct me if I'm wrong). - RaFaL

Re: Recursive includes

2001-10-23 Thread RaFaL Pocztarski
nstead of including them in each other ad infinitum, it gives you an error. Check out which file is included in wich one, and try to find a loop. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: better solutions for NetFtpServer1.0.7

2001-10-23 Thread RaFaL Pocztarski
t; is a problem of syslogd or /etc/syslog.conf ? Have you ever had any other problems with syslog? - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: create hash and print all elements?

2001-10-23 Thread RaFaL Pocztarski
ue pattern, like every hash. my %hash = qw(sky blue grass green apple red); means the same as: my %hash = (sky=>'blue', grass=>'green', apple=>'red'); - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Deleting an element from an array.

2001-10-23 Thread RaFaL Pocztarski
> > @array = (1, 2, 3, 4, 5); > delete $array[2]; Try this: @array = (1, 2, 3, 4, 5); splice @array, 2, 1; Is that what you wanted? See perldoc -f splice http://www.perldoc.com/perl5.6.1/pod/func/splice.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [

Re: NetFtpServer prerequisites.

2001-10-23 Thread RaFaL Pocztarski
Syslog has been in standard perl distribution for at least five years. - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Test

2001-10-23 Thread RaFaL Pocztarski
Eric Wang wrote: > Hi guys, I just configured pine to accept emails from [EMAIL PROTECTED] > to go into another folder. > > Please do not reply and disregard this email. Don't get me wrong, but why couldn't you just wait for any real message to test your config? - Ra

Re: simple sockets

2001-10-20 Thread RaFaL Pocztarski
ned() is not a shortcut for defined($_=) Angle operator is magical inside of while loop condition to simplify filters like: /^\s+#/ or print while <>; - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: url encode

2001-10-20 Thread RaFaL Pocztarski
Pradeep Sethi wrote: > Is there a similar function in perl like PHP - urlencode / urldecode ? CGI->escape and CGI->unescape methods (they work also as functions). - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: tainting problem

2001-10-20 Thread RaFaL Pocztarski
his problem ?? Try: require "xxx.pl"; You may have to add something like this: use lib "/path/to/your/file"; before require. <*> is used for file globbing (that's why it's insecure to require) and <"xxx.pl";> will return '"xxx.pl&quo

Re: FORK

2001-10-19 Thread RaFaL Pocztarski
Unix system, so I can tell you only what I've read). See: perldoc -f fork http://www.perldoc.com/perl5.6.1/pod/func/fork.html and: perldoc perlfork http://www.perldoc.com/perl5.6.1/pod/perlfork.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Very newbie question #2

2001-10-19 Thread RaFaL Pocztarski
> windows-file >> >> See also: perldoc perlport >> http://www.perldoc.com/perl5.6.1/pod/perlport.html#Newlines - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Very newbie question

2001-10-19 Thread RaFaL Pocztarski
"Heely, Paul" wrote: > Try the perlvar documentation: > perldoc perlvar Or the same on the web: http://www.perldoc.com/perl5.6.1/pod/perlvar.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FW: What is Auto-Vivification

2001-10-19 Thread RaFaL Pocztarski
ntry which can be detrimental. No. Printing $href->{fou} will not create 'fou' entry in %$href. Printing $href->{fou}{bar} will create $href->{fou} but not $href->{fou}{bar}, $href->{fou} will be a reference to an empty hash. - RaFaL Pocztarski, [EMAIL PROTECTED] -

Re: symbolic reference of hashes in subroutines

2001-10-18 Thread RaFaL Pocztarski
Ross Howard wrote: > Specifically, the line: > ${%{$hash}}{$key} = $value; > ^^^ > This is the part I am not 100% clear on. $hash is a hash reference, right? Then try: $hash->{$key} = $value; - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe,

Re: I Want To Read (INPUT) A TCP (Port80) Session - Then Mail That Report

2001-10-18 Thread RaFaL Pocztarski
th proxies, really great module. See: http://www.linpro.no/lwp/ http://www.perldoc.com/perl5.6/lib/LWP.html http://search.cpan.org/search?dist=libwww-perl - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]