Re: Using the ternary operator to concat a string not working like I think?

2012-04-05 Thread Stan
Thanks to everyone for their help! It's been very enlightening! Stan On Apr 4, 2012, at 4:51 AM, Shlomi Fish wrote: > Hi all, > > inspired by this thread, I’ve added this item in my “Perl Elements to Avoid” > page: > > http://perl-begin.org/tutorials/bad-elements/#ternary_operator_instead_of_i

Re: chomp

2012-04-05 Thread Jim Gibson
On 4/5/12 Thu Apr 5, 2012 1:34 PM, "Somu" scribbled: > Hello everyone, > > #this code works for any valid input > # > use strict; > use warnings; > > print "\n\n\tEnter directory : "; > my $path = <>; > chomp($path); #but if this line is eliminated, it > shows d driv

Re: WWW::Selenium click not working - CPAN install problem

2012-04-05 Thread Owen
> Just tried installing on a Linux box, but the CPAN install failed. > This > reminded me that I had to force the install on the WinXP machine to > get that > to install as the same test failed on that too. > > Here is the log from the Linux install. > > 'YAML' not installed, will not store persi

chomp

2012-04-05 Thread Somu
Hello everyone, #this code works for any valid input # use strict; use warnings; print "\n\n\tEnter directory : "; my $path = <>; chomp($path); #but if this line is eliminated, it shows d drive(current drive) for any input my @files = glob "$path/*" or die; print "\n\n\t

Re: split

2012-04-05 Thread Dr.Ruud
On 2012-04-04 16:33, lina wrote: my ($keys, $value) = split /[ ]+/, $line; That is better written as split " ", $line; See perldoc -f split, about this special (and default) split mode. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beg

RE: WWW::Selenium click not working - CPAN install problem

2012-04-05 Thread Bob McConnell
> From: Gary Stainburn It has been a while since I last worked with Selenium, but when I installed Se1 I found the PM file on CPAN was not being kept up to date. I had to replace it with a newer version from the Selenium download site. In the time I spent working with it, I got the distinct imp

Re: WWW::Selenium click not working - CPAN install problem

2012-04-05 Thread Gary Stainburn
Just tried installing on a Linux box, but the CPAN install failed. This reminded me that I had to force the install on the WinXP machine to get that to install as the same test failed on that too. Here is the log from the Linux install. cpan[1]> install WWW::Selenium

WWW::Selenium click not working

2012-04-05 Thread Gary Stainburn
Hi folks. Returning to Perl on Win32 for the first time in ages. Installed Strawberry Perl and WWW::Selenium. However, when I run the example in the CPAN help page, it hangs because the $sel->click doesn't work. If I manually click on the button the rest of the script works fine. Anyone got a

Re: Perl help

2012-04-05 Thread Rob Coops
On Tue, Apr 3, 2012 at 11:38 AM, Om Prakash wrote: > Hi all, > > I have some data which is like > > A:12 > B:13 > C: 14 > > Now the data is line by line and multiple line with A B C is common though > 12 13 14 is changing, i want to take this data column wise, and the the > value should come unde

Re: split

2012-04-05 Thread mohan . p
Not sure about the code but i think below logic might work, 1) split the line into two parts , one is patterns and another is values 2) split /assign the patterns to an array and take the count 3) write a loop till the above count is reach and use the value taken in first step for each pattern in

Perl help

2012-04-05 Thread Om Prakash
Hi all, I have some data which is like A:12 B:13 C: 14 Now the data is line by line and multiple line with A B C is common though 12 13 14 is changing, i want to take this data column wise, and the the value should come under A B C. Any help will be appreciated. Regards.../om -- To unsubscri