Hi Mark
You have opened OUTFILE (OUTFILE, "<$output" ) in read mode . To
write to this file you need to open in write mode (">$output").
Sunita
-Original Message-
From: mark baumeister [mailto:mlfmp...@gmail.com]
Sent: Tuesday, April 12, 2011 6:18 AM
To: beginners@perl.org
Subje
Hi All
I have following simple code :
===
use warnings;
sysopen(DATA,"list1.txt",O_RDWR|O_TRUNC);
@array1=;
foreach $i (@array1){
$i =~ s/d|b/G/ig;
print DATA $i;
}
close DATA;
---
It is fa
address
On 2011-04-09 23:53 +0530, Sunita Rani Pradhan wrote:
> Yes it is matching 167.249.0.0 .
But it's also matching things like "42". Feature?
Read about quantifiers, and also about the precedence of |.
--
- Olof Johansson
- www: http://www.stdlib.se/
Yes it is matching 167.249.0.0 .
-Sunita
-Original Message-
From: Jim Gibson [mailto:jimsgib...@gmail.com]
Sent: Saturday, April 09, 2011 11:50 PM
To: Perl Beginners
Subject: Re: regular expression for email id and IP address
At 11:42 PM +0530 4/9/11, Sunita Rani Pradhan wrote:
>Hi
Hi All
1. Can anybody guide me to write a regular expression to
verify correct Email address ?
2. I have written a regular expression to verify correct IP address :
print $ipadd if ($ipadd =~
/^([0-9])|([1-9][0-9])|([1-2][0-5][0-5])\.([0-9])|([1-9][0-9])|([1-2
Hi Anjan
You can execute shell command inside "``" and capture the output in
variable . e,g:
--
$, = " ";
$ls = `ls`;
print $ls;
@ls = split(/\n/,$ls);
print @ls;
--
Thanks
Sunita
-Original Message-
From: ANJAN PURKAYASTHA [mailto:anjan.purkayas...@gmail.
1:19 PM
To: Sunita Rani Pradhan
Cc: beginners@perl.org
Subject: Re: assigning hash to a scalar
Hi Sunita,
> $var = %input;
> ...
> Output : 3/8--> What does this output mean ?
You are evaluating a hash in a scalar context.
Quoting perldata:
If you evaluate a hash in scalar
Hi All
I have following set of code (just assign a hash to a scalar) :
chomp($input = );
%input = split (/\s+/,$input);
$var = %input;
Print "value: : $var\n";
Input : orange 12 apple 23 pinnaple 78
Output : 3/8--> What does this output mean ?
Thanks
Sunita
Hi Christ
In sub Dist() , you need define scope of each variable as my or our or
local , which is line no.20 .
Regards
Sunita
-Original Message-
From: Chris Stinemetz [mailto:cstinem...@cricketcommunications.com]
Sent: Friday, March 18, 2011 9:18 PM
To: Uri Guttman
Cc: be
Hi Wisma
You can try following set of code :
--
#!/usr/local/bin/perl -w
use warnings;
open (DATA , "data.txt") or die "can not open data.txt, $!";
open (DATA1, ">data1.txt") or die "can not open data1.txt, $!";
while(){
$string = $_;
($data1,$data2) = $str
ct: Re: string index fucntion
On 11-01-26 11:53 AM, Sunita Rani Pradhan wrote:
> There is a sting as : "The cat is sat on the mat" .
>
> I want to get index of second occurrence of"at" using index
> function . Can it be possible?
Yes.
my $s
Hi All
There is a sting as : "The cat is sat on the mat" .
I want to get index of second occurrence of"at" using index
function . Can it be possible?
Thanks
Sunita
Could you please tell me about this Strawberry ?
Thanks
Sunita
-Original Message-
From: Sean Murphy [mailto:mhysnm1...@gmail.com]
Sent: Wednesday, January 19, 2011 3:06 PM
To: Sisyphus; beginners@perl.org
Subject: Re: Windows 7 64 bit Make.exe file
Hi guys,
thanks. I have removed Acti
Pradhan
Subject: Re: Perl OOP concept in real time scenario
Hi Sunita,
On Thursday 13 Jan 2011 11:46:38 Sunita Rani Pradhan wrote:
> Hi All
>
>
>
> Can anyone explain the Perl OOP concept with one real time
> example ? How it is useful or required in our programming lif
Hi All
Can anyone explain the Perl OOP concept with one real time
example ? How it is useful or required in our programming life? Any link
also would be helpful .
Thanks
Sunita
Hi All
I have a string as; $str = "the cat sat on the mat" .
How the following command works substr($str , 4, -4) on the string ?
What should be the output?
Thanks
Sunita
On Mon, Jan 10, 2011 at 11:21 AM, Shawn H Corey
wrote:
> It isn't used if you start your scripts from Windows.
It worked for me earlier:
On Mon, Jan 10, 2011 at 10:43 AM, Brandon McCaig
wrote:
> I just tested with Strawberry Perl v5.12.1 in Windows XP with the
> following code:
>
> #!/usr/bin/
Yes I agree . Then I am coming back to my 1st question . This path does not
exist on windows "/usr/bin/perl " , how it works ?
Thanks
Sunita
-Original Message-
From: Brandon McCaig [mailto:bamcc...@gmail.com]
Sent: Monday, January 10, 2011 9:14 PM
To: Shawn H Corey
Cc: beginners@perl.o
Yes I can use that . Does this -w option works on windows or not ?
-Original Message-
From: Christian Marquardt [mailto:christian.marqua...@trivadis.com]
Sent: Monday, January 10, 2011 6:22 PM
To: Sunita Rani Pradhan; Donald Calloway; beginners@perl.org
Subject: Re: 1st line of perl
think there is no error thrown by Windows (or any other architecture)
because this line is never compiled because of the # in front which
signifies the line as comments.
On Tue, 04 Jan 2011 00:33:18 -0500, Sunita Rani Pradhan
wrote:
> Hi All
>
>
> Perl script works
Hi Peter
Please check my answers down .
Thanks
Sunita
-Original Message-
From: Peter Scott [mailto:pe...@psdt.com]
Sent: Tuesday, January 04, 2011 1:16 PM
To: beginners@perl.org
Subject: Re: advangtes of Perl on various languages
On Tue, 04 Jan 2011 12:42:28 +0530, Sunita Rani Pradhan
Hi All
Could you please let me know , if anybody using any automation framework
for their automation testing or any types information about automation
framework ?
Note: Perl scripting should be used in that framework .
Thanks
Sunita
Hi All
I work as a automation engineer in organization and I am
responsible for automation test cases in Perl .
My parent automated test Perl script generally has 3 sets .
- 1st set has pre-configurations section of test script . It is
a separate script (called preru
Hi All
I would like to know answers of following questions :
- What all advantages Perl has on top of other scripting languages like
Python , shell , Java ?
- What is the career growth, road map in Perl programming ?
I am not sure , if this questions are right for thi
: Sunita Rani Pradhan
Cc: beginners@perl.org
Subject: Re: 1st line of perl script
Hi Sunita,
> Perl script works without the first line ( perl Interpreter
> : #! /usr/bin/perl) . What is the real use of this line ? This line does
> not through any error on Windows where , this path
Hi All
Perl script works without the first line ( perl Interpreter
: #! /usr/bin/perl) . What is the real use of this line ? This line does
not through any error on Windows where , this path does not exist .
Why is it so ?
Could anybody explain it clearly?
Thanks
Sunita
Thank you all for you help . I have got my answer .
Regards
Sunita
-Original Message-
From: Michiel Beijen [mailto:michiel.bei...@gmail.com]
Sent: Monday, January 03, 2011 9:56 PM
To: Shlomi Fish
Cc: beginners@perl.org; Sunita Rani Pradhan
Subject: Re: default arguments in subroutine
Hi All
How can I define default arguments in Perl subroutine? Can
anybody explain with examples?
Thanks
Sunita
I am sorry and thank you very much for help Marco . I had some issues in my
system.
Regards
Sunita
-Original Message-
From: marcos rebelo [mailto:ole...@gmail.com]
Sent: Monday, January 03, 2011 5:08 PM
To: Sunita Rani Pradhan
Cc: beginners@perl.org
Subject: Re: perl training material
Hi Marco
I am not able to access this site , seems to be down .
Regards
Sunita
-Original Message-
From: marcos rebelo [mailto:ole...@gmail.com]
Sent: Monday, January 03, 2011 2:01 PM
To: Sunita Rani Pradhan
Cc: beginners@perl.org
Subject: Re: perl training material and
Thank you Jeff .. This site is blocked in my company , m not able to access
files :(
Regards
Sunita
-Original Message-
From: Jeff Pang [mailto:pa...@arcor.de]
Sent: Monday, January 03, 2011 1:33 PM
To: Sunita Rani Pradhan
Cc: beginners@perl.org
Subject: Re: perl training material and
Hi All
I am planning to give Perl training to my juniors in my
team. They are new to Perl. Could anyone please send me any Perl
training materials with exercises, or links, which I can refer to?
Please send me good suggestions also for training.
Thanks & Regards
Sunita
You can install dmake/nmake to install perl packages .
-Sunita
-Original Message-
From: Erez Schatz [mailto:moonb...@gmail.com]
Sent: Wednesday, December 15, 2010 7:47 PM
To: beginners@perl.org
Subject: Re: install a package on windows
On 12/15/2010 04:09 PM, Jeff Peng wrote:
> Hi,
>
>
33 matches
Mail list logo