Thanks a lot Shlomi and Thomas.
I will try with these methods.
On Tue, Mar 23, 2010 at 7:13 PM, Shlomi Fish wrote:
> Hi Sheela,
>
> On Tuesday 23 Mar 2010 15:06:24 sheela b wrote:
> > Hi All,
> >
> > How to delete last 10 lines of a file using Perl one liner?
>
Hi All,
How to delete last 10 lines of a file using Perl one liner?
I used the following one liner to delete first 10 lines of a file,
perl -i.bak -ne 'print unless 1..10' test.txt
Regards
Sheela
Hi Jenn,
You can fing max and min value as,
my @ar = (1,2,3,4,58,9,2,1);
my $max = (sort { $b <=> $a } @ar)[0];
my $min = (sort { $a <=> $b } @ar)[0];
Regards
Sheela
On Wed, Jul 22, 2009 at 12:48 PM, Jenn G. wrote:
> Hello,
>
> How to lookup the max and min value in an array?
> Just like SQL's
Hi All,
I have shopping cart website integrating with authorize.net for Payment
gateway.
Authorize.net is working fine in test mode, but in the live mode, i am not
able to give any credits to customer. It displays following error message.
"The referenced transaction does not meet the criteria
Is there any option to redirect a URL in perl other than Location ?
Regards
Sheela