- Original Message -
From: "Mariano Loza Coll"
To:
Sent: Sunday, November 28, 2010 5:35 PM
Subject: trying to install a cpan module
Hi all,
I'm new to programming, and only recently did I start playing around with
command prompts, etc, so it's probably no surpise that I'm having s
Hi;
On Sun, Nov 28, 2010 at 12:31, Dr.Ruud wrote:
> On 2010-11-28 10:54, Chaitanya Yanamadala wrote:
>
>> How do i split a value like this
>> F:\test\test123\test1233
>
> For example:
>
> ruud$ perl -wle 'print for split //, q{F:\test\test123\test1233}'
> F
> :
> \
> t
> e
> s
> t
> \
> t
> e
> s
On 2010-11-28 10:54, Chaitanya Yanamadala wrote:
How do i split a value like this
F:\test\test123\test1233
For example:
ruud$ perl -wle 'print for split //, q{F:\test\test123\test1233}'
F
:
\
t
e
s
t
\
t
e
s
t
1
2
3
\
t
e
s
t
1
2
3
3
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@
Take extra caution with the backslash-scapes..
---
use 5.010;
use strict;
use warnings;
my $str1 = "F:\test\test123\test1233"; #Wrong! Backslash being expanded!
my $str2 = 'F:\test\test123\test1233';
my @array1 = split(/\\/, $str1);
my @array2 = split(/\\/, $str2);
my $n1 = @array1;
my $n2 = @
>>How do i split a value like this
>>F:\test\test123\test1233
use strict;
use warnings;
my $str='F:\test\test123\test1233';
my @values = split /\\/, $str;
print "@values";
Cheers,
Parag
On Sun, Nov 28, 2010 at 1:54 AM, Chaitanya Yanamadala <
dr.virus.in...@gmail.com> wrote:
> How do i split a
Hi Chaitanya,
On Sunday 28 November 2010 11:54:14 Chaitanya Yanamadala wrote:
> How do i split a value like this
> F:\test\test123\test1233
>
> please help me with this..
>
You should use File::Spec (and related modules such as File::Basename) to
manipulate path names, instead of using split.
How do i split a value like this
F:\test\test123\test1233
please help me with this..
Regards
Chaitanya
Hi Mariano,
On Sunday 28 November 2010 08:35:34 Mariano Loza Coll wrote:
> Hi all,
>
> I'm new to programming, and only recently did I start playing around with
> command prompts, etc, so it's probably no surpise that I'm having some
> difficulty trying to install a module using cpan. The module