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
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:
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]
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]
-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]
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]
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
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]
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]
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]
>
> @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: [
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]
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
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]
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
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
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
> 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]
"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]
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]
-
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,
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]
22 matches
Mail list logo