Hi,
There is no tool available to uninstall modules. However what you can do
manually is this.
I use Active Perl 5.10 on Windows.
1. Open the .packlist file in Perl/lib directory in any text editor. This
contains the path of all modules installed on your system (along with some
other entries a
itshardtogetone wrote:
Hi,
Hello,
How do I copy the first 10 elements of @a into @b?
my @b = @a[ 0 .. 9 ];
John
--
Those people who think they know everything are a great
annoyance to those of us who do.-- Isaac Asimov
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For
try this,
@b[0..9] = @a[0..9];
- 原邮件 -
从: itshardtogetone
日期: 星期四, 一月 29日, 2009 下午2:39
主题: how to copy elements into the next array
> Hi,
> How do I copy the first 10 elements of @a into @b?
>
> The method that I use is long :-
> my @a = 1..20;
> my @b = ();
>
> my $ctr = 0;
> foreac
Hi,
How do I copy the first 10 elements of @a into @b?
The method that I use is long :-
my @a = 1..20;
my @b = ();
my $ctr = 0;
foreach (@a){
if ($ctr < 10){
push @b,$_;
}
$ctr ++;
}
Thanks.
b chen wrote:
i am completely new to perl, can you explain to me the following line of
code in red.
There is no red here, there is only black and white.
how does this line of code grab a time value and assign it to $ time,
how does assigment happend in this conditiona statement.
while (<
> i am completely new to perl, can you explain to me the following line
> of
> code in red.
>
> how does this line of code grab a time value and assign it to $ time,
>
> how does assigment happend in this conditiona statement.
>
>
>
> while (<>)
> {
> chop;
> # Grab the time
> next unless ($time
i am completely new to perl, can you explain to me the following line of
code in red.
how does this line of code grab a time value and assign it to $ time,
how does assigment happend in this conditiona statement.
while (<>)
{
chop;
# Grab the time
next unless ($time) = /(\d+:\d+:\d+\,\d+)/;
Hi Tomer,
tomer wrote:
after exectue the command system("cd /home/tomer/temp")
I dont see the terminal change the direcotry?
maybe the change is valid only in the script?
how can i control "seeing" terminal direcotry with perl script ?
system might not be what you want. What it does is tha
after exectue the command system("cd /home/tomer/temp")
I dont see the terminal change the direcotry?
maybe the change is valid only in the script?
how can i control "seeing" terminal direcotry with perl script ?
Thanks
Tomer
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For addition
Hi,
inetquestion wrote:
for the example perl script below is there a way to avoid errors from
showing up in stdout if the shell script being called does not exist?
The shell script being called is not in the same directory as the perl
script, but is in the path. Otherwise I would just do a che
for the example perl script below is there a way to avoid errors from
showing up in stdout if the shell script being called does not exist?
The shell script being called is not in the same directory as the perl
script, but is in the path. Otherwise I would just do a check to see
if it exist before
>>Which is obviously a real beginner question. I have googled around,
>> but all the info I have found assumes you have access to the server.
>>
>>My sites are shared hosting accounts located at Earthlink, Verio,
>> GoDaddy, etc. I have used a number of scripts which I can use just
by ftp uploading
>Which is obviously a real beginner question. I have googled around, but all
>the info I have found assumes you have access to the server.
>
>My sites are shared hosting accounts located at Earthlink, Verio, GoDaddy,
>etc. I have used a number of scripts which I can use just by ftp uploading
>te
On Jan 26, 1:36 pm, wpflu...@yahoo.com (Bill) wrote:
> I'm not a beginner with perl but all of my previous stuff has been
> simple and I've never really used modules, until now. I'm working on
> a program that has to receive a mime encoded email and pull info out
> of it. I'm using Email::Simple
Rob Dixon wrote:
S, Rajini (STSD) wrote:
From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc]
Your particular problem can
be easily solved using only a module that is included in the
standard Perl distribution.
use Date::Parse;
my $time1 = str2time '26-Jan-2009';
my $time2 = str2
Thank you ...
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Sharan Basappa wrote:
> On Sun, Dec 7, 2008 at 2:01 AM, Rob Dixon wrote:
>>
>> I'm hoping you've made a mistake, because if I understand you correctly then
>> out
>> of ('a_b_c_1', 'a_b_c_2') the first should be removed because 1 is less than
>> two.
>>
>> If I'm right then the program below sho
On Sun, Dec 7, 2008 at 2:01 AM, Rob Dixon wrote:
> Sharan Basappa wrote:
>>
>> I was wondering if there is a quick way to remove an arbitrary element
>> from an array.
>> I have an array which stores _ delimited strings a_b_c_1). The last
>> string stores the rank of the string.
>> I have to remov
S, Rajini (STSD) wrote:
> From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc]
>> S, Rajini (STSD) wrote:
>>>
>>> I am new to Perl Programming and have a query in perl.
>>>
>>> In perl is there any system defined functions to find out the
>>> Differences in dates.
>>>
>>> Eg :
>>>
>>> Date 1 ->
Thanks Gunnar for the suggestions.
In which version of perl is Parse module available.
We have perl version 5.8.0 and parse module is not available.
Rajini
>-Original Message-
>From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc]
>Sent: Tuesday, January 27, 2009 7:42 PM
>To: be
20 matches
Mail list logo