David Moreno Garza am Sonntag, 21. Januar 2007 07:50:
> On Sat, 2007-01-20 at 09:31 +1100, Ken Foskey wrote:
> > > What's exactly the difference between:
> > > ++$lines and $lines++; ?
> >
> > Nothing in this context.
>
> What about other contexts?
Hi David
#!/usr/bin/perl
use strict;
use warni
On Sat, 2007-01-20 at 09:31 +1100, Ken Foskey wrote:
> > What's exactly the difference between:
> >
> > ++$lines;
> >
> > and
> >
> > $lines++; ?
>
>
> Nothing in this context.
What about other contexts?
David.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On 1/19/07, Bertrand Baesjou <[EMAIL PROTECTED]> wrote:
While running my script it seems to use around a gigabyte of memory
(there is 1GB of RAM and 1GB of swap in the system), might this be the
problem?
If you're running low on memory, unless you're working on an
inherintly large problem, you
David Moreno Garza wrote:
> On Fri, 2007-01-19 at 13:24 +, Rob Dixon wrote:
>> ++$lines;
>
> What's exactly the difference between:
>
> ++$lines;
>
> and
>
> $lines++; ?
In void context they are both the same because perl optimizes $lines++ to
++$lines.
John
--
Perl isn't a toolbox,
On Fri, 2007-01-19 at 16:21 -0600, David Moreno Garza wrote:
> On Fri, 2007-01-19 at 13:24 +, Rob Dixon wrote:
> >++$lines;
>
> What's exactly the difference between:
>
> ++$lines;
>
> and
>
> $lines++; ?
Nothing in this context.
It does make a difference if you are 'using' the value
On Fri, 2007-01-19 at 13:24 +, Rob Dixon wrote:
>++$lines;
What's exactly the difference between:
++$lines;
and
$lines++; ?
David.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Fri, Jan 19, 2007 at 03:17:19PM +0100, Bertrand Baesjou wrote:
> foreach $line () {
See, this isn't a while loop, as you have in the subject.
That is the cause of your problems.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Ken Foskey wrote:
On Fri, 2007-01-19 at 13:16 +0100, Bertrand Baesjou wrote:
Hi,
I am trying to read data from a file, I do this by using the "while
(){ $line}" construction.
However with files with a size of roughly bigger than 430MB it seems to
crash the script :S Syntax seems all fi
Bertrand Baesjou wrote:
Hi,
I am trying to read data from a file, I do this by using the "while
(){ $line}" construction.
>
However with files with a size of roughly bigger than 430MB it seems to
crash the script :S Syntax seems all fine (perl -wc -> syntax OK).
How does your script cra
On Fri, 2007-01-19 at 13:16 +0100, Bertrand Baesjou wrote:
> Hi,
>
> I am trying to read data from a file, I do this by using the "while
> (){ $line}" construction.
> However with files with a size of roughly bigger than 430MB it seems to
> crash the script :S Syntax seems all fine (perl -wc
Hi,
I am trying to read data from a file, I do this by using the "while
(){ $line}" construction.
However with files with a size of roughly bigger than 430MB it seems to
crash the script :S Syntax seems all fine (perl -wc -> syntax OK).
I was thinking that maybe it was running to the end
11 matches
Mail list logo