Hi
I am trying to install MediaWiki::Bot module locally on my server (I am
not the admin).
I am trying to use cpan command line interface for this.
I used following options before beginning installation:
o conf makepl_args "LIBS=-L/home/foo/local/lib
INC=-I/home/foo/local/include PREFIX=/home
hello folks
when is it the easiest solution to email 587 startssl and authentication
I arrived by writing this but the email sent does not contain the headers of
the authentication
]$ cat emailsender1.pl
#!/usr/bin/perl
use Email::MIME;
my $message = Email::MIME->create(
Are you familiar with chomp( $str ) ? Often you will want to use chomp to get
rid of trailing newlines on your input lines.
On 07/21/2011 11:11 PM, Mike McClain wrote:
Given the following snippet of code could someone explain to me
why the linefeed gets included in $num?
mike@/deb40a:~/perl>
On 22/07/2011 16:05, Mike McClain wrote:
On Thu, Jul 21, 2011 at 02:11:33PM -0700, Mike McClain wrote:
Given the following snippet of code could someone explain to me
why the linefeed gets included in $num?
mike@/deb40a:~/perl> perl -e'
$str = "asdfggfh 987321qwertyyy\n";
($num = $str) =~ s/^
On 21/07/2011 16:52, Shawn H Corey wrote:
On 11-07-21 11:41 AM, Rob Dixon wrote:
I am pretty sure that the original code is a perversion of
split /\t|\n/;
which is a lazy way of losing a trailing newline without chomping first.
It also seems excessive. This is the same thing:
split /[\t\n]/
On Thu, Jul 21, 2011 at 02:11:33PM -0700, Mike McClain wrote:
> Given the following snippet of code could someone explain to me
> why the linefeed gets included in $num?
>
> mike@/deb40a:~/perl> perl -e'
> $str = "asdfggfh 987321qwertyyy\n";
> ($num = $str) =~ s/^.*?(\d+).*$/$1/;
> print $num;
> '
On 22/07/2011 15:25, Mike McClain wrote:
On Fri, Jul 22, 2011 at 01:54:57AM +0100, Rob Dixon wrote:
As others have noted, /./ without the /s modifier matches any character
but newline, so the regex matches only up to just before the "\n". But
your code would be better written as
use strict;
us
On Jul 21, 6:06 pm, shawnhco...@gmail.com (Shawn H Corey) wrote:
> On 11-07-21 08:54 PM, Rob Dixon wrote:
> ...
> I think part of the confusion is also in what does $ match? According
> to perlre, under "Regular Expressions",
>
> $ Match the end of the line (or before newline at the end
Thank you all for the kind info.
On Fri, Jul 22, 2011 at 4:57 PM, Shlomi Fish wrote:
> Hi Feng,
>
> On Fri, 22 Jul 2011 16:47:09 +0800
> Feng He wrote:
>
>> What's the meaning of Perl's "-M" operator?
>> which perldoc document is it get descripted in?
>>
>
> If you mean the -M operator inside P
Hi Feng,
> What's the meaning of Perl's "-M" operator?
`-M` is a command switch. It is used to load a module and is equivalent to
`use`-ing a module within the script. `-M` is different from `-m` in that the
former executes `import` function of the module whereas the latter does not
import any
Hi Feng,
On Fri, 22 Jul 2011 16:47:09 +0800
Feng He wrote:
> What's the meaning of Perl's "-M" operator?
> which perldoc document is it get descripted in?
>
If you mean the -M operator inside Perl code see:
http://perldoc.perl.org/functions/-X.html
(Accessible as "perldoc -f -X" - "-f" for f
What's the meaning of Perl's "-M" operator?
which perldoc document is it get descripted in?
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Hi Jennifer,
replying in public. Thanks for not top posting.
On Thu, 21 Jul 2011 20:21:38 -0430
Jennifer Maldonado wrote:
> 2011/7/21 Shlomi Fish
> > 11. We're now maintaining the sources of the Perl Beginners' Site in [a
> > bitbucket.org repository](http://perl-begin.org/source/#vcs) and the
Hi,
What i find challenging in perl is the "automagic" that enables a
little code to do a lot. I was looking at a book "Data Munging with
Perl" by David Cross. I've used perl in the past but I forget most of
it after a while and then relearn it when I need to use it again...In
any event (I wish I
14 matches
Mail list logo