On Tue, May 31, 2011 at 3:45 PM, Uri Guttman wrote:
>> "SR" == Sayth Renshaw writes:
>
> SR> my $hex = sprintf("ox%o2x\n", $number);
>
> why is the \n there? you just chomp it off. better to not put it in the
> string to begin with.
>
> also that leading char is the letter 'o' which is not t
On May 31, 2011 2:16 AM, "Agnello George" wrote:
>
> HI
>
>
> i am given ever day a list of files which i wget within a parent folder
.
>
> my team gives mea structure where theses files are located
>
>
> cat /home/upload_files1.txt
> download the files form wget http://loc
<44b8cc1f-bef8-494a-ad15-45e79d3ef...@s16g2000prf.googlegroups.com>
On Tue, May 24, 2011 at 06:25:53 -0700 , Ambuli wrote:
> I am try to crawl a webpage that one is redirected to another.
> I am using Scrappy module for crawling process.
> I am using version 0.94111370 (Updated version).
> Any one
On Wed, May 25, 2011 at 11:45:13 + , Marco van Kammen wrote:
> Hi List,
>
> I'm struggeling with the following:
>
> There is a blob field in the oracle db which contains xml...
> I want to read this blob and make a single xml file out of it...
> Now when using the code below I get the data o
On Wed, May 25, 2011 at 13:15:49 -0400 , Tim Lewis wrote:
> This is a very basic question on arrays and referring to the elements. In
> referring to the elements, I know that it is correct practice to use $
> instead of @, but I know that Perl allows the @. My simple question is what
> is the dif
On Wed, May 25, 2011 at 07:39:28 -0700 , Irfan Sayed wrote:
> hi,
>
> i have string like this
> "2011/05/25 07:24:58 -0700 PDT" i need to match "2011/05/25"
> i wrote reg ex like this: ^\d\d\d\d//\d\d/\d\d$ but it is not working
>
> code is like this
>
>
> $lin = "2011/05/25 07:24:58 -0700 P
On Fri, May 27, 2011 at 13:10:05 +1000 , Sayth Renshaw wrote:
> Hi
>
> Wanted to ask a question about practical beginners guides for perl. I
> have found a read the baisc beginners guides here
> http://www.perl.com/pub/2008/05/07/beginners-introduction-to-perl-510-part-2.html.
>
> Was hoping to e
On Fri, May 27, 2011 at 18:26:42 +0530 , Ramprasad Prasad wrote:
> I have a requirement of generating large number (> 100 thousand ) files
> from a single template by replacing the placeholders with respective values
> Currently I use Template-Toolkit, but is there a faster way ?
>
> Since my tem
On Fri, May 27, 2011 at 14:10:16 -0700 , John W. Krahn wrote:
>
> The real problem is that $RSYNC_OPTS contains whitespace and you
> can't mix system(LIST) and system(STRING) together like that. It has
> to be either:
>
> system($RSYNC, split( ' ', $RSYNC_OPTS ),
> "$host:/Blah/blah/Blue/$host_e
Hi Chris Nehren,
I show my code to clear my thought.
my $scraper = Scrappy->new;
$new_url="Some Url";
$scraper->get($new_url)
if ($scraper->page_status == 302)
{
# Here i want to get the redirect Location
}
Give some suggestion for me
--
To unsubscrib
At 11:10 AM -0700 5/26/11, Derek wrote:
Hello, I am getting the following error:
bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near
unexpected token `('
bash: /var/www/html/bugzilla/email_in.pl: line 2: `use Cwd
qw(abs_path);'
The contents of this file are:
#!/usr/bin/perl
use
> "SR" == Sayth Renshaw writes:
>> Uri Guttman -- u...@stemsystems.com
http://www.sysarch.com --
>> - Perl Code Review , Architecture, Development, Training, Support
--
>> - Gourmet Hot Cocoa Mix http://bestfriendscocoa.com
-
>>
p
Good Morning,
I could use some help figuring out where a warning is coming from.
My shopping cart script has the following sub:
695 sub get_ud {
696 my ($log, $pass) = $main::global->{login} ?
($main::global->{form}->{'userlogin'}, $main::global->{form}->{'userpass'}) :
();
On 31/05/2011 07:15, Agnello George wrote:
HI
i am given ever day a list of files which i wget within a parent folder .
my team gives mea structure where theses files are located
cat /home/upload_files1.txt
download the files form wget http://localserver/website1 and
On 5/31/11 Tue May 31, 2011 9:32 AM, "sono...@fannullone.us"
scribbled:
> Good Morning,
>
> I could use some help figuring out where a warning is coming from.
>
> My shopping cart script has the following sub:
>
> 695 sub get_ud {
> 696 my ($log, $pass) = $main::global->{login} ?
> ($main::g
> ls
>>
>> index.php 123.php dual.templ dual_2.templ go.php data.txt
>>
>> i need to create a tar of this in the same given format
>>
>> index.php
>> dualfilder/dual.templ dual_2.templ
>> go/go.php
>> go/numbers/123.php
>> data/data.php
>>
>>
>> i cant seem to come up with a a logic on how to g
> "Shlomi" == Shlomi Fish writes:
Shlomi> Definitely Strawberry Perl: it is free-as-in-beer, open-source,
Shlomi> free-as-in- speech, community-driven, and allows you to install
Shlomi> stuff from CPAN without having to resort to a lot of proprietary
Shlomi> and costly software from Microsoft
On May 31, 2011, at 9:54 AM, Jim Gibson wrote:
> $log and $pass are ASSIGNED in line 696, but they are apparently being
> assigned an undefined value (undef in Perl-speak).
Thanks a million, Jim. You were absolutely correct. I didn't stop to
think about the variable result being undefi
I believe that this list is a good place to find good advice about how
to write Perl well. 'beginners' is a misnomer, but our task is to advise
properly or to redirect the question.
At the end of this post is a copy of a mail that Casey West sent to me
privately, but the 'Ten Years of Consid
On Tue, May 31, 2011 at 2:15 AM, Agnello George
wrote:
> i am given ever day a list of files which i wget within a parent folder .
>
> my team gives me a structure where theses files are located
*snip*
> using the above data given to me i check whether the files exist and if
> they do i do
Brandon McCaig wrote:
Hello,
Just a couple of comments on some of your code. :)
my $start_line = 2;
unless($lines[1] =~ /^\s*$/)
{
warn "The second line isn't empty" ;
$start_line--;
}
@lines = @lines[$start_line..$#lines];
You are copying a
> "JWK" == John W Krahn writes:
JWK> Or as:
JWK>$_ = "$directory/$_" for @dirfiles[ 1 .. $#dirfiles ];
just to show another way that is usually faster for prepending a string:
substr( $_, 0, 0, "$directory/" ) for @dirfiles[ 1 .. $#dirfiles ];
that is called 4
On Tue, May 31, 2011 at 4:23 PM, John W. Krahn wrote:
> Just a couple of comments on some of your code. :)
>
*snip*
>> @lines = @lines[$start_line..$#lines];
>
> You are copying almost all of @lines to @lines when you should be using
> perl's built-in functions to just remove elements from @l
On Tue, May 31, 2011 at 4:34 PM, Uri Guttman wrote:
> just to show another way that is usually faster for prepending a string:
>
> substr( $_, 0, 0, "$directory/" ) for @dirfiles[ 1 .. $#dirfiles ];
>
> that is called 4 arg substr and it is way underused in perl. this
> benchmark shows the
> "BM" == Brandon McCaig writes:
BM> On Tue, May 31, 2011 at 4:34 PM, Uri Guttman wrote:
>> just to show another way that is usually faster for prepending a string:
>>
>> substr( $_, 0, 0, "$directory/" ) for @dirfiles[ 1 .. $#dirfiles ];
>>
>> that is called 4 arg subst
On Tue, May 24, 2011 at 06:25:53 -0700 , Ambuli wrote:
> I am try to crawl a webpage that one is redirected to another.
> I am using Scrappy module for crawling process.
> I am using version 0.94111370 (Updated version).
> Any one suggest me to handle the Redirect.
What do you mean by "handle the
I'm not a perl guy but I need to make something run that relies on the
BSDGlob.pm module. I downloaded xzvf File-BSDGlob-0.94.tar.gz from
CPAN and generated the Makefile. The make dies with
bash-3.2$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for File::BSDGlo
On 30 May 2011 01:57, Casey West wrote:
> On Fri, Apr 22, 2011 at 12:59 AM, Casey West wrote:
>
>
> I received three unsolicited recommendations for moderators to this list,
> one volunteer, and three unsolicited requests to deny moderatorship from
> some individuals. Some of these lists intersec
On 2011-05-31 02:48, John M Rathbun MD wrote:
I'm an [...] trying to convert some of my old BASIC
programs to run in a browser
Use JavaScript?
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Tue, May 31, 2011 at 05:05, Chris Nehren
wrote:
> On Tue, May 24, 2011 at 06:25:53 -0700 , Ambuli wrote:
>> I am try to crawl a webpage that one is redirected to another.
>> I am using Scrappy module for crawling process.
>> I am using version 0.94111370 (Updated version).
>> Any one suggest me
Uri Guttman wrote:
"JWK" == John W Krahn writes:
JWK> Or as:
JWK> $_ = "$directory/$_" for @dirfiles[ 1 .. $#dirfiles ];
just to show another way that is usually faster for prepending a string:
substr( $_, 0, 0, "$directory/" ) for @dirfiles[ 1 .. $#dirfiles ]
> "JWK" == John W Krahn writes:
JWK> Uri Guttman wrote:
>>> "JWK" == John W Krahn writes:
>>
>> that is called 4 arg substr and it is way underused in perl. this
>> benchmark shows the significant speedup of about 2x:
>>
>>
>> use Benchmark qw( cmpthese ) ;
>>
>>
On Tue, 31 May 2011 18:13:20 +0100, Dermot wrote:
> I'd like to put an idea out to see what the list thinks, what if Casey
> asked for a moderator to take on the role for one year and then the list
> hold an electon[1] in 12 months time for another moderator.
That's as reasonable an idea as any.
Hi All,
I wrote perl script to draw html tables and send that html tables in mail . i
used two modules 1: html::tables and 2: mail::sendmail
but when i send mail , it never prints the actual table in the mail body
following is the code snippet,
use HTML::Table;
use Mail::Sendmail;
$table =
Subscription Test
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
infor
Shlomi> stuff from CPAN without having to resort to a lot of proprietary
Shlomi> and costly software from Microsoft.
What is the costly software that you would need to install?
Sayth
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.o
On Jun 1, 2011 1:56 AM, "Sayth Renshaw" wrote:
>
> Shlomi> stuff from CPAN without having to resort to a lot of proprietary
> Shlomi> and costly software from Microsoft.
>
> What is the costly software that you would need to install?
>
'Without' being the key word there. Take a look at activestat
>push @files, @dirfiles;
>}
>
>return {
>src_uri => $src_uri,
>dest_uri => $dest_uri,
>files => \@files
>};
> }
>
> sub prompt_to_continue
> {
>my ($instructions) = @_;
>print Dumper $instructions;
>print "Continue? (yes/no) ";
>exit(1)
38 matches
Mail list logo