Thank You!
eventual wrote:
Hi,
Hello,
I have an array , @datas, and each element within @datas is a string
that's made up of 6 digits with spaces in between like this “1 2 3 4 5
6”, so the array look like this
@datas = ('1 2 3 4 5 6', '1 2 9 10 11 12', '1 2 3 4 5 8', '1 2 3 4 5
9' , '6 7 8 9 10 11');
No
> "JWK" == John W Krahn writes:
JWK> perl -i~ -0777pe "s/A/B/" file.pdf
that won't help as line ending hacking occurs on all text files on
winblows if you use stdio which that does. it isn't only on line
oriented operations. your open idea would work here if it worked on the
other one.
> "TL" == Thomas Liebezeit writes:
TL> I'm triying to do some substitutions on an pdf file.
TL> perl -p -i~ -w -e "s/A/B/;" file.pdf
TL> This works as intended, except: perl adds 0x0D (Windows \n) :-/
TL> as a HEX diff shows.
TL> How can I work around this? Is there something
Mornin' --
Derek Said:
>>>
The contents of this file are:
#!/usr/bin/perl
use Cwd qw(abs_path);
>>>
If the first line is indeed a blank line, then the default interpreter is
invoked. The '#!' has to the the first two characters on the first line of
your code.
B
On Sat, May 28, 2011 at 12:10 P
Thomas Liebezeit wrote:
Hello,
Hello,
I'm triying to do some substitutions on an pdf file.
perl -p -i~ -w -e "s/A/B/;" file.pdf
This works as intended, except: perl adds 0x0D (Windows \n) :-/
as a HEX diff shows.
How can I work around this? Is there something like binmode()?
You shou
> "D" == Derek writes:
D> Hello, I am getting the following error:
D> bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near
D> unexpected token `('
big clue. what is the first word of that line? it is bash! perl is not
seeing your script for some reason. so this is not a
On 2011-05-27 10:18, eventual wrote:
I have an array , @datas, and each element within @datas is a string that's
made up of 6 digits with spaces in between like this “1 2 3 4 5 6”, so the
array look like this
@datas = ('1 2 3 4 5 6', '1 2 9 10 11 12', '1 2 3 4 5 8', '1 2 3 4 5 9' , '6 7
8 9 1
I am looking for a practical guide something that says here is a
example
It sounds like what you want is the Perl Cookbook [0].
[0]: http://oreilly.com/catalog/9781565922433/
--
│ Magnus Woldrich
│ m...@japh.se
│ http://japh.se
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For add
On 2011-05-27 02:27, char...@pulsenet.com wrote:
for (0 .. 6) {
Be aware that this sets up a memory structure. Still 2 times faster than
looping:
$ time perl -wle '$i=0; 1 while $i++ < 1e4'
real0m0.005s
$ time perl -wle '$i=0; 1 while $i++ < 1e5'
real0m0.013s
$ time perl -wle
Hello,
I'm triying to do some substitutions on an pdf file.
perl -p -i~ -w -e "s/A/B/;" file.pdf
This works as intended, except: perl adds 0x0D (Windows \n) :-/
as a HEX diff shows.
How can I work around this? Is there something like binmode()?
cheers
Thomas
--
To unsubscribe, e-mail:
I want to update a rrd database file, I'm using RRDTool::OO the data
is coming out of a database table.
each row in the database has in it two columns that are the dsname and
the associated value.
to insert a record using RRDTool::OO one does
$rrd->update(time => $time, values => [$val1, $val2,
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 Cwd qw(abs_path);
Thats all. I know basi
On 2011-05-26 10:43, shawn wilson wrote:
I'm trying to figure out what the differences are with all of the available
message queue projects. There's spread, rabbit, amq and a dozen+ others. I'm
not sure how polarized this subject is so maybe I should just ask what I
should look for and what I sh
> "RD" == Rob Dixon writes:
RD> On 26/05/2011 06:18, Uri Guttman wrote:
XL> for($i = 0; $i< @lines; $i++)
>>
>> first rule: don't use c style index loops when you can avoid them. that
>> line is much faster and more perlish as:
>>
>> foreach my $i ( 0 .. $#lines )
RD> It
On 26/05/2011 06:18, Uri Guttman wrote:
>> "XL" == Xi Liu writes:
>
>XL> I translated a program from c to perl.but the perl program cost 15
> seconds
>XL> compare to the original c one cost only less than 1 second, I guess
> this
>XL> might be the result of I literally transl
On Sat, May 28, 2011 at 4:47 AM, Shlomi Fish wrote:
> On Friday 27 May 2011 20:34:51 shawn wilson wrote:
> > When my perlish gets a bit fuzzy, a strong drink at a bar always helps me
> > straighten things out :)
> >
> > That said, I use 'perl -e' if I'm fuzzy and the drink only made my
> perlish
Yes ,
I totally agree with Shlomi.
pls some one let me know the good tool to
learn perl as perlcritic is very complex
On Sat, May 28, 2011 at 9:47 AM, Shlomi Fish wrote:
> On Friday 27 May 2011 20:34:51 shawn wilson wrote:
> > On May 27, 2011 1:11 PM, "abhay vyas" wrote:
> > > Hello
> > > Whi
From: "Agnello George"
> great !! i used tinymce in my insert form that solved all my html alignment
> problem :)
It would be much great if you wouldn't quote more than 140 lines of previous
messages just to answer a single line... :-)
Octavian
--
To unsubscribe, e-mail: beginners-unsubscr..
On Sat, May 28, 2011 at 2:24 PM, Agnello George wrote:
>
>
> On Fri, May 27, 2011 at 6:21 PM, Agnello George
> wrote:
>
>>
>>
>> On Fri, May 27, 2011 at 6:05 PM, Shlomi Fish wrote:
>>
>>> On Friday 27 May 2011 13:48:21 Agnello George wrote:
>>> > Hi
>>> >
>>> > I am using TT to display my data f
On Fri, May 27, 2011 at 6:21 PM, Agnello George wrote:
>
>
> On Fri, May 27, 2011 at 6:05 PM, Shlomi Fish wrote:
>
>> On Friday 27 May 2011 13:48:21 Agnello George wrote:
>> > Hi
>> >
>> > I am using TT to display my data from my db ,
>> >
>> >
>> > i insert the following data from a Front end
On Friday 27 May 2011 20:34:51 shawn wilson wrote:
> On May 27, 2011 1:11 PM, "abhay vyas" wrote:
> > Hello
> > Which is best tool
> >
> > to learn the perl at home.
>
> When my perlish gets a bit fuzzy, a strong drink at a bar always helps me
> straighten things out :)
>
> That said, I use 'pe
On Friday 27 May 2011 15:51:21 Agnello George wrote:
> On Fri, May 27, 2011 at 6:05 PM, Shlomi Fish wrote:
> > On Friday 27 May 2011 13:48:21 Agnello George wrote:
> > > Hi
> > >
> > >
> > > is there a way i can display on my browser with a new-line or
> >
> > First of all, make sure you avoi
23 matches
Mail list logo