> $array[112]='a';
> but there isnot any array with this name.why?
1. perhaps the programmer made a mistake. execute perl with -w
to find out more.
2. the array name is @array. are you sure there isn't an @array?
3. you merely have to mention a variable or element of an array
or hash, and it wi
On Sep 8, nafiseh saberi said:
>what is the difference between die and exit??
die() takes an error message and prints it to STDERR, and exit()s with a
failure (non-zero value). exit() takes a numeric value and sets that as
the success (zero) or failure (non-zero) value of your program.
--
Je
> Any idea why this aint working?
>
> perl -wpi.org -e s@/cgi-bin/forum_idx.pl@/fakecgi/fakeforum_idx.pl@
no quotes around the string to be evaluated (the s@...@...@ bit).
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hi .
what is the difference between die and exit??
thanks.
-
Best regards.
Nafiseh Saberi
Iran - Shiraz
The smooth sea never made a skillful mariner.
--
hi all.
I saw in source code:
$array[112]='a';
but there isnot any array with this name.why?
and for initialize the array,what is the meaninig of '\' in
%array(id=>\$var)
what is the meaning of this in one source code.?
### What's the prefix we tag on each file
(eg,ACCOUNTING.Sep.25.gz)
Any idea why this aint working?
perl -wpi.org -e s@/cgi-bin/forum_idx.pl@/fakecgi/fakeforum_idx.pl@
Thanks
Dave
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hotmail wrote:
>
> Koff,
>
> Is stdlib.h installed? It should be in /usr/include.
>
Andrian,
Thanks for your reply. I couldn't find stdlib.h in /usr/include . But I
already installed libstdc++-2.8.1.1-sol26-sparc-local , is it the same
one ?
> Important question: what Solaris installation
>
> Where did you get that package? If those files are missing it's a bad
> distribution most likely. Are the files there but with the wrong
> permissions?
>
It's from sunfreeware so I don't think it's a bad distro.
I may reinstall my Sun and see what happen.
Rgds,
--koff
> *>Any idea t
Both worked great, thanks! I used the latter to make the resulting code
easier to read. I knew it was something simple like that!
-Ryan
"Robert Citek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hello Ryan,
>
> Replace this line:
> $body=~[what goes
Hello Ryan,
Replace this line:
$body=~[what goes here?]
with this:
$body=~ s/\n/\n/g;
or this:
$body=~ s/\n//g;
Do either of these do what you intend?
Regards,
- Robert
-
At 04:44 PM 9/7/2001 -0700, Ryan Kane wrote:
[...]
>from the script:
>--
>#!/usr/lo
I have a form that submits a textarea to a perl script, which sets that to
$body. Unfortunately, if the text has two paragraphs (ie blank line between
them) it will show up with the pesky ^m. I'm trying to display the entry in
a formatted html page, so I would need to make it so the $body variab
how do i print directly from my program to the
printer. i've looked in my books but cant seem to
find it.
thanks
max
__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
To unsubs
Thanks, this is what I wanted.
-Original Message-
From: Jeffl [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 6:09 PM
To: Imtiaz ahmad
Cc: [EMAIL PROTECTED]
Subject: Re: URL redirect and row-count
Howdy,
redirect assuming use CGI;
print q->redirect( "http://www.somewhere
Joey Smith [[EMAIL PROTECTED]] quoth:
*>Actually, your question led me in the right direction...
*>
*>I just used CPAN to install Term::ReadLine:Gnu, and everything seems to
*>work just fine now! I guess Term::ReadLine doesn't use GNU readline by
*>default, or something...
That's odd as Term::Rea
Howdy,
redirect assuming use CGI;
print q->redirect( "http://www.somewhere.org"; );
or not,
print "Location: http://www.the_other_place.org\n\n";;
counting the number of rows
select COUNT(some_column) FROM some_table WHERE some_clause;
or
SELECT COUNT DISTINCT(some_column) FROM some_table
On Sat, Sep 08, 2001 at 01:18:43AM +0530, Suresh Babu.A [Support] wrote:
> I do have 1 GB space. Further when i copy the text file from the network
> to my local hard disk, it is working.
Ah, I see.
I did a bit more looking and it turns out the "Not enough space" might be
referring to memory.
Hi-
Can somebody help me with a function that redirects a user's browser to a
different site.
I like to be able to do it using some PERL function.
Also, is there a function in PERL that tells you how many rows are returned
by a select statement.
e.g. If I have following select then what do I nee
Actually, your question led me in the right direction...
I just used CPAN to install Term::ReadLine:Gnu, and everything seems to
work just fine now! I guess Term::ReadLine doesn't use GNU readline by
default, or something...
Thanks, all, for the help!
On Fri, 7 Sep 2001, Brett W. McCoy wrote th
On Fri, 7 Sep 2001, Anton Arhipov wrote:
> I need to use a hash of hashes with a DMB file...
> Where can I get the MLDBM module and how to install it?
It's available on CPAN (search.cpan.org).
-- Brett
http://www.chapelperilous.net/
Both split(/\_/, $var) & split ('_', $var) should work. Can we see the rest
of the script, to see what else could be wrong?
|-Original Message-
|From: eric wang [mailto:[EMAIL PROTECTED]]
|Sent: Friday, September 07, 2001 3:39 PM
|To: [EMAIL PROTECTED]
|Subject: split on _ and on -
|
|
Hello,
I need to use a hash of hashes with a DMB file...
Where can I get the MLDBM module and how to install it?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Fri, 7 Sep 2001, Joey Smith wrote:
> Good question...how do I determine that?
>
> Perhaps the GNU readline on my system is out of sync with CPAN's
> upstream version...
Try aptgetting the deb for GNU readline and see if it needs updating.
-- Brett
ht
I did the following:
$var = 'abcd_abc-hjdfd_adfadfa-adfadfadf_fadfafd-adfad';
my @MyData = split(/[-_]/, $_);
foreach (@MyData) {
printf "%-s\n", $var;
}
Tried /-/ then /_/ and both split as expected. The one above split on - and _
as expected.
The output:
abcd
abc
hjdfd
a
On Fri, 7 Sep 2001, eric wang wrote:
> how do i split on underscore?( _ ) and on hyphen? ( - )?
>
> i tried split(/\_/, $var) but didn't work
> and I also tried split ('_', $var) but didn't work also.
You should be able to split directly on _ and - :
$ perl -e '$str =q(a_string); foreach (split
Good question...how do I determine that?
Perhaps the GNU readline on my system is out of sync with CPAN's
upstream version...
On Fri, 7 Sep 2001, Brett W. McCoy wrote the following to Joey Smith :
> On Fri, 7 Sep 2001, Joey Smith wrote:
>
> > I don't think so...this is on Debian GNU/Linux 2.2
At 01:31 PM 9/7/01 -0400, Stephen P. Potter wrote:
>Once it is installed, it will be "recognized". To test, just try something
>like:
>
>perl -M[name] -e 'print $[name]::VERSION'
>
>for example:
>
>$ perl -MCPAN -e 'print $CPAN::VERSION'
>1.52
>$
>or, even more simply
>
>perl -M[name] -e ''
Or e
Hi people, just need a quick reference.
how do i split on underscore?( _ ) and on hyphen? ( - )?
i tried split(/\_/, $var) but didn't work
and I also tried split ('_', $var) but didn't work also.
HELP...
Thanks
Eric
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
On Fri, 7 Sep 2001, Joey Smith wrote:
> I don't think so...this is on Debian GNU/Linux 2.2 (also known as
> Potato). :)
Does Term::Readline depend on the GNU readline library?
-- Brett
http://www.chapelperilous.net/
-
I don't think so...this is on Debian GNU/Linux 2.2 (also known as
Potato). :)
On Fri, 7 Sep 2001, Elaine -HFB- Ashton wrote the following to Joey Smith :
> Joey Smith [[EMAIL PROTECTED]] quoth:
> *>Thanks for the input.
> *>
> *>"Strangely" means what I said in the latter sentence...no command
>
Extreme newbie here and just signed up on this list, so my most humble
apologies if this has been covered elsewhere. (But then again, I can't find
it if it has...)
I'm trying to create a series of tools to help automate our domain. Most of
the things that I'm focusing on is removing the "deadwo
Lightning flashed, thunder crashed and Michael Fowler <[EMAIL PROTECTED]> whi
spered:
| On Fri, Sep 07, 2001 at 11:22:31PM +0530, Suresh Babu.A [Support] wrote:
| > Hi All,
| >
| > [Sat Oct 6 16:56:59 2001] abn.pl: Not enough space at abn.pl line 6
| >
| > What is the error all about?
|
| Wha
Joey Smith [[EMAIL PROTECTED]] quoth:
*>Thanks for the input.
*>
*>"Strangely" means what I said in the latter sentence...no command
*>completion at all, no history, and control-d does not work.
*>
*>I have reinstalled Bundle::CPAN several times, and even did a force on
*>Term::ReadKey and Term::R
Hi Michael,
I do have 1 GB space. Further when i copy the text file from the network
to my local hard disk, it is working.
Thanks
SureshA
[EMAIL PROTECTED]
===
The cause of evil is our desire to be superior to o
I'm writing a perl to scan logs for specific error messages and then email
them out. I'm writing it in Perl since I can use it on UNIX(variants) and
NT.
Right now I'm trying to code up the line for NT to call sendmail.exe with
the appropriate parameters...
system("sendmail.exe -u cgrabowy -p do
Hi All:
I'm creating html pages using perl on a Linux box for www display. The
pages are stored on the Linux box and viewed across a network. When I view
the resulting file in Netscape 4.? (on a Windoz '98 box) it displays fine.
But when I view it in IE 6.?b (same box) all of the lines
--- Jeff 'japhy/Marillion' Pinyan <[EMAIL PROTECTED]> wrote:
> On Sep 7, [EMAIL PROTECTED] said:
>
> >$somestring =~ s!>!)!g;
>
> Then I would suggest tr/>/!/, which is a "better" way to write such
> substitutions, for certain values of "better".
Ah I am familiar with the tr/// route - I sho
Thanks for the input.
"Strangely" means what I said in the latter sentence...no command
completion at all, no history, and control-d does not work.
I have reinstalled Bundle::CPAN several times, and even did a force on
Term::ReadKey and Term::ReadLine, since they said they were up to date
after
I'm not sure if it's applicable, but you can also try starting the program
with "runh.exe".
Dean Theophilou
Genisar
-Original Message-
From: Sidharth Malhotra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 7:07 PM
To: Danny Reyna; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
S
On Fri, Sep 07, 2001 at 02:58:30PM +0200, Roland Schoenbaechler wrote:
> In some cases I want to write the line-number of the script to STDERR (In
> analogy to the functions die or next). Does a variable exist indicating the
> line number of the currently executed step (or the last step)?
If you
On Fri, Sep 07, 2001 at 05:15:29PM +0900, Thaddeus Robertson wrote:
> +OK 12 76912
This looks suspiciously like a pop3 response. There are pure Perl POP3
modules that should work on Mac, have you tried them?
Michael
--
Administrator www.shoebox.net
Programmer, System Admin
On Fri, Sep 07, 2001 at 11:22:31PM +0530, Suresh Babu.A [Support] wrote:
> Hi All,
>
> [Sat Oct 6 16:56:59 2001] abn.pl: Not enough space at abn.pl line 6
>
> What is the error all about?
What is the confusion? There wasn't enough space left on the drive to open
the file.
Michael
--
Admini
> -Original Message-
> From: Stephen P. Potter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 1:37 PM
> To: Bob Showalter
> Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: Re: foreach and the ordering of array's
>
>
> Lightning flashed, thunder crashed and Bob Showa
Hi All,
[Sat Oct 6 16:56:59 2001] abn.pl: Not enough space at abn.pl line 6
What is the error all about?
Thanks
Suresh
-- Forwarded message --
Date: Fri, 7 Sep 2001 02:37:33 +0530 (GMT)
From: "Suresh Babu.A [Support]" <[EMAIL PROTECTED]>
To: brian d foy <[EMAIL PROTECTED]>
C
Thanks - Someone already pointed out that I had a blank line at the
beginning of the file, which would cause the execution to fail.
-Original Message-
From: Stephen P. Potter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 1:41 PM
To: Anderson, Carlin
Cc: '[EMAIL PROTECTED]'
Lightning flashed, thunder crashed and "Anderson, Carlin" whispered:
| I am having problems getting a perl program to execute through my web
| server, and have started to run some stand-alone tests.
|
| Here is a short dump of my session - the first section is where I am trying
| to call the pro
Lightning flashed, thunder crashed and Bob Showalter whispered:
| One way to supply a list to for/foreach is to use the keys() function
| to retrieve a list of the keys in a hash. keys() does not return the
| key values in any particular order, due to the internal representation
| of a hash.
I t
Lightning flashed, thunder crashed and "siren jones" <[EMAIL PROTECTED]> whi
spered:
| How does one get the system to recognize the installed PERL module?
| Is there a simple way to test that it work?
Once it is installed, it will be "recognized". To test, just try something
like:
perl -M[name]
Lightning flashed, thunder crashed and Jeffl <[EMAIL PROTECTED]> whispere
d:
| when you run a foreach on a hash you have no idea what order you will get
| the keys unless
| you sort it, then you can only get it in the order defined by sort. If you
| use Tie::IxHash
| on a hash you can print out th
Lightning flashed, thunder crashed and Jeffrey Loetel <[EMAIL PROTECTED]>
whispered:
| Question:
| When you extract a value from an @ are you guarenteed the order that
| you are going to get?
In both cases, @ and %, you will always get a predictable order. With
arrays, it will always be ordere
The name of the service I think you want is not 'server' but 'lanmanserver'.
-Original Message-
From: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 11:35 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Win32::Lanman problem
Dear Team
Could you pl
You are correct it was probably a bad choice of wording to use "retreive",
iteration is what is actually occuring. When it comes down to it, I think
I just confused myself on the issue, I was thinking to much on how foreach
iterates over a hash. I should have just ran a test before hand to
check.
This is my first post. My knowledge base is UNIX/Intermediate,
IRIX system admin/beginner and PERL/beginner.
The short question:
After one follows the installation procedure for a module, that is,
download, gunzip, tar, ... then
perl Makefile.PL
make
make test
make install
How does one get
--- Paul Johnson <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 07, 2001 at 06:33:23AM -0400, agc wrote:
> > what does &extra' mean? or for example &extra'itemstotalbe(scalar,
> > @colwith)
> > in genral what does the &<>' mean?
>
> ' is the old (pre Perl 5) way of writing ::- it is obsolete
It'
On Sep 7, Jeff 'japhy/Marillion' Pinyan said:
>On Sep 7, [EMAIL PROTECTED] said:
>
>>$somestring =~ s!>!)!g;
>
>Then I would suggest tr/>/!/, which is a "better" way to write such
>substitutions, for certain values of "better".
My bad. I really meant tr/>/)/.
--
Jeff "japhy" Pinyan [EMAI
On Sep 7, [EMAIL PROTECTED] said:
>$somestring =~ s!>!)!g;
Then I would suggest tr/>/!/, which is a "better" way to write such
substitutions, for certain values of "better".
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.per
why not just do
$somestring =~ s!>!)!g;
that will replace every ">" with a ")". This way you do not even have to
worry about $stringlength.
> -Original Message-
> From: Dan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: general
> -Original Message-
> From: Jeffl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 11:47 AM
> To: Bob Showalter
> Cc: 'beginners @ perl . org'
> Subject: RE: foreach and the ordering of array's
>
>
> when you run a foreach on a hash you have no idea what order
> you will g
On Sep 7, Dan said:
>If I have a string with say a number of '>>' in it which may be
>variable in length and I wish to write a regexp to match and replace it
>with the equivalent number of ')'s [ie would become ]
There's a very clever solution to this in "Effective Perl
Programming"
Hi perlers,
If I have a string with say a number of '>>' in it which may be
variable in length and I wish to write a regexp to match and replace it
with the equivalent number of ')'s [ie would become ]
I can use $somestring =~ s/\>{$stringlength}/[help!]/g;
as a matching operator -
http://www.bookpool.com/.x/mbbddhs9lr/ss/1?qs=cgi.pm
-Original Message-
From: Suresh Babu.A [Support] [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 17:05
To: [EMAIL PROTECTED]
Subject: CPI PERL SITE
Hi All,
Can any one suggest me a link to online CGI-Perl Book.
Thanks
SureshA
[E
Hi All,
Can any one suggest me a link to online CGI-Perl Book.
Thanks
SureshA
[EMAIL PROTECTED]
===
The cause of evil is our desire to be superior to others and our
selfishness.
===
It checks for the existence of a value and then increments if there is one.
> -Original Message-
> From: Cohan, Drew [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: order of operations
>
>
> Hi,
>
> I don't understand somethin
Hi Drew,
On Fri, Sep 07, 2001 at 11:45:34AM -0400, Cohan, Drew ([EMAIL PROTECTED])
spew-ed forth:
> Hi,
>
> I don't understand something about Perl's order of operations with this
> code:
>
> ...if ($name_count{$member}++)...
Using ++ (or --) after the variable will cause the current value to
when you run a foreach on a hash you have no idea what order you will get
the keys unless
you sort it, then you can only get it in the order defined by sort. If you
use Tie::IxHash
on a hash you can print out the has in the order it was constructed.
Basically, I couldn't remeber what the Camel sa
Hi,
I don't understand something about Perl's order of operations with this
code:
...if ($name_count{$member}++)...
Does Perl retrieve the value for $name_count{$member}, increase it by one,
and then evaluate the if() statement? If that's true, then I don't
understand how the else would ever f
Dear Team
Could you please tell me why this script is reporting error 1060 (this means
the specified service is installed) even though this service is there and
running fine on the server. Please look into it.
use Win32::Lanman;
if(!Win32::Lanman::QueryServiceStatus("hotnt006", "", 'server'
Koff,
Is stdlib.h installed? It should be in /usr/include.
Important question: what Solaris installation did you do? There are five
options ranging from "core" to "entire distribution with OEM support". You'd
need "developer", "entire distribution" or "entire distribution with OEM
support".
Did
What do you mean you can't include a drop down box? Are you generating the
web page in Perl? What code are you using? Or is the page in HTML and your
having problems accepting the form data from the page??
John
-Original Message-
From: Rebekha M-L [mailto:[EMAIL PROTECTED]]
Sent: 07 Sept
> -Original Message-
> From: Rebekha M-L [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 8:55 AM
> To: [EMAIL PROTECTED]
> Subject: Newbee question
>
>
> Just started learning and writing in perl and am unable to include an
> options dropdown box into a mail form.
> I am tr
Veeraraju_Mareddi wrote:
> I have a large data file which has ; as delimiter and i want
> this to be replaced newline character ,but unfortunately my
> script is not working
>
> my code is given below
>
> open(NOTE ,">>c:\\data.txt"); #data f
Hi Ronald,
On Fri, Sep 07, 2001 at 02:58:30PM +0200, Roland Schoenbaechler
([EMAIL PROTECTED]) spew-ed forth:
> analogy to the functions die or next). Does a variable exist indicating the
> line number of the currently executed step (or the last step)?
>
Yes, you can use the __LINE__ token:
.
I am having problems getting a perl program to execute through my web
server, and have started to run some stand-alone tests.
Here is a short dump of my session - the first section is where I am trying
to call the program directly, and the second is where I am executing it
through the perl progra
Just started learning and writing in perl and am unable to include an
options dropdown box into a mail form.
I am trying to allow the sender to choose who the mail is for. Is this
possible or am I trying to do something far to difficult for a humble
beginner
Jo: from somewhere north of London vil
Never mind my question re looping, figured it out for myself -haven't
thought hard enough..
Marcus
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
koff [[EMAIL PROTECTED]] quoth:
*>Hi,
*>
*>I just reinstall my SUN 2.6 and reinstall back Perl using
*>perl-5.6.1-sol26-sparc-local.gz binary. It's work find and without
*>hasle.
*>
*>But I encounter a problem to install DBI and Data-Show-Table module (And
*>of course DBD) . For instance during "m
Joey Smith [[EMAIL PROTECTED]] quoth:
*>Recently, many of my systems have begun acting very strangely when I try
*>to use CPAN's "shell" mode. I have no command completion, no history,
*>and when I try to exit with "Control-D", it just shows ^D...
Can you define 'strangely' a little more descript
> -Original Message-
> From: Jorge Goncalvez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 6:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re:Last line
>
>
> Hi, how to parse the last line of a file.
>
> I have this code:
> $pb->destroy unless($last_line=~/^dhcpd|LOG_INFO|ftp
> -Original Message-
> From: Jeffrey Loetel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 1:57 AM
> To: [EMAIL PROTECTED]
> Subject: foreach and the ordering of array's
>
>
> Question:
> When you extract a value from an @ are you guarenteed the order that
> you are going
On Sep 7, Roland Schoenbaechler said:
>In some cases I want to write the line-number of the script to STDERR (In
>analogy to the functions die or next). Does a variable exist indicating the
>line number of the currently executed step (or the last step)?
The caller() function also gives you this
print "I stopped at line number ",__LINE__,"\n";
On Fri, Sep 07, 2001 at 02:58:30PM +0200, Roland Schoenbaechler shaped the electrons
to read:
> In some cases I want to write the line-number of the script to STDERR (In
> analogy to the functions die or next). Does a variable exist indicating the
At 02:58 PM 9/7/01 +0200, you wrote:
>In some cases I want to write the line-number of the script to STDERR (In
>analogy to the functions die or next). Does a variable exist indicating the
>line number of the currently executed step (or the last step)?
The current line is __LINE__. It's in the fi
In some cases I want to write the line-number of the script to STDERR (In
analogy to the functions die or next). Does a variable exist indicating the
line number of the currently executed step (or the last step)?
Thanks for your help
Roland
*** PLEASE NOTE *
On Sep 7, Paul Johnson said:
>> what does &extra' mean? or for example &extra'itemstotalbe(scalar,
>> @colwith)
>
>' is the old (pre Perl 5) way of writing ::- it is obsolete
Borrowed from Ada (regretably, I believe).
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com
Now /that/ I didn't know. (About the ' I mean.)
Thanks Paul.
> -Original Message-
> From: Paul Johnson [mailto:[EMAIL PROTECTED]]
> Sent: 07 September 2001 11:44
> To: agc
> Cc: perl
> Subject: Re: &' meanning
>
>
> On Fri, Sep 07, 2001 at 06:33:23AM -0400, agc wrote:
> > what does &ex
Rajeev
Looks like you're missing a dependency of the Storable module. Try:
> set HTTP_proxy=http://proxy.server:port
> ppm install Storable
We'll get there in the end!
Cheers,
Rob
> -Original Message-
> From: Rajeev Rumale [mailto:[EMAIL PROTECTED]]
> Sent: 17 September 2001 10:20
>
On Fri, Sep 07, 2001 at 06:33:23AM -0400, agc wrote:
> what does &extra' mean? or for example &extra'itemstotalbe(scalar,
> @colwith)
> in genral what does the &<>' mean?
' is the old (pre Perl 5) way of writing ::- it is obsolete
& is the old (pre Perl 5) way of calling a sub - it is obsole
what does &extra' mean? or for example &extra'itemstotalbe(scalar,
@colwith)
in genral what does the &<>' mean?
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader
of this mes
Hi, how to parse the last line of a file.
I have this code:
$pb->destroy unless($last_line=~/^dhcpd|LOG_INFO|ftpd/);
$last_line=??
The file is already open.
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
The script below is supposed to get a certain number of email addresses
from a database, print them (at a later stage "print" is replaced by a
command to send the mails) and sleep for a while before starting the
process again until the loop ends.
I works, but has two flaws.
a)
Erm, I'm not clear what you're trying to do Veeraraju.
Firstly you're opening your file for append, so a read on the file won't return
any data.
Secondly you're not using the result of the substitution. While this may well be
a cut-down example I hope you're not expecting the file itself to be m
You are not saving the changes to the file...
Try something like this
open NOTE, "c:\\data.txt" or die "Can't open data.txt: $!";
open OUT, ">c:\\out.txt" or die "Can't create out.txt: $!";
while () {
s/;/\n/g;
print OUT;
}
close NOTE;
close OUT;
-Original Message-
Fro
Dear All
I have a large data file which has ; as delimiter and i want this to be
replaced newline character ,but unfortunately my script is not working
my code is given below
open(NOTE ,">>c:\\data.txt"); #data file
while ()
{
s/;/"\n"/;
}
Thanks Rob, Joel, Gunther and all,
I tried the way. But as i am behind a firewall I had to download the
package from Active state and then do the installation.
but the things are not so help full I am getting another error.
The eorr at the bottom of this mail. Any advice or suggestions.
thank
- Original Message -
From: Rajeev Rumale <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 7:09 AM
Subject: Urgent !!! installing Storable.pm
> Hi,
>
> I need to install and use the Storable.pm in my machine.
I am useing Active
> Perl on Win2k machine.
use ppm
Recently, many of my systems have begun acting very strangely when I try
to use CPAN's "shell" mode. I have no command completion, no history,
and when I try to exit with "Control-D", it just shows ^D...
As this is happening across many different systems, I'm assuming it is
something I have done
Hi,
I just reinstall my SUN 2.6 and reinstall back Perl using
perl-5.6.1-sol26-sparc-local.gz binary. It's work find and without
hasle.
But I encounter a problem to install DBI and Data-Show-Table module (And
of course DBD) . For instance during "make" DBI-1.18 I got this err msg:
--8<-
You may need
>
> $string =~ /\s+(\S+)\s+/;
>
if you could have mnore than one whitespace character delimiting the field.
Rob
> -Original Message-
> From: John Edwards [mailto:[EMAIL PROTECTED]]
> Sent: 07 September 2001 09:20
> To: 'Thaddeus Robertson'; [EMAIL PROTECTED]
> Subject: R
> I am getting the following error in starting a perl service which is
> created by my script.
>
> Error:
> error 2186 :The service is not responding to the control function
>
> Event Deatails:
>
> Event ID:7009,
> Source: Service Control Manager
> Timeout (12 milliseconds) waiting for serv
> ppm install Storable
Rob
> -Original Message-
> From: Rajeev Rumale [mailto:[EMAIL PROTECTED]]
> Sent: 17 September 2001 06:10
> To: [EMAIL PROTECTED]
> Subject: Urgent !!! installing Storable.pm
>
>
> Hi,
>
> I need to install and use the Storable.pm in my machine. I am useing
$string = "+OK 12 76912";
$string =~ /\s+(.*)\s+/;
$lastonserver = $1;
-Original Message-
From: Thaddeus Robertson [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 09:15
To: [EMAIL PROTECTED]
Subject: String operation
Hi
Here is a total newbie question:
I want to stick the second
1 - 100 of 101 matches
Mail list logo