Hi all,
First, because Im new to this list, I want to salute
you all.
Second, please help me understand where my error is
Does anybody know why this code does NOT copy the file into
the specified directory?
After the script is executed, my file is listed into the
directory, but
--- Cristi Ocolisan [EMAIL PROTECTED] wrote:
Does anybody know why this code does NOT copy the file into the
specified directory?
After the script is executed, my file is listed into the directory,
but empty.
Strange?
You indicate that this script used to work. That suggests to me that
Hello,
Is there an IsNumber() function in perl? I'm looking for a way to determine
of a given $variable is numeric or not. Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Hello,
Is there a function to delete a character in string? Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Use regex..
($variable =~ /^\d+$/)?1:0;
On 8/25/05, Jayvee Vibar [EMAIL PROTECTED] wrote:
Hello,
Is there an IsNumber() function in perl? I'm looking for a way to determine
of a given $variable is numeric or not. Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On Aug 25, 2005, at 3:22, Jayvee Vibar wrote:
Is there an IsNumber() function in perl? I'm looking for a way to
determine
of a given $variable is numeric or not. Thanks.
If you need to know whether it looks like a number there are a few
ways, see
perldoc -q determine
If on the
On Aug 25, 2005, at 3:34, Jayvee Vibar wrote:
Is there a function to delete a character in string? Thanks.
Depending on the details this can be substr(), s///, tr///,
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jayvee Vibar mailto:[EMAIL PROTECTED] wrote:
: Is there an IsNumber() function in perl? I'm looking for a way to
: determine of a given $variable is numeric or not. Thanks.
Read perlfaq4: How do I determine whether a scalar is a
number/whole/integer/float?
HTH,
Charles K. Clarkson
--
Hi,
I am trying to speed up a site that uses mod_perl because it works slowly. I
have done many changes in MySQL queries and they are working now much
faster, but the site is still slow and I think this is because I use
Template-Toolkit.
I like Template-Toolkit very much because it is so complex
Hi:
Try this:
variable_to_store = `rsh -l username hostname 'command arg1 arg2 ..`;
This works for me, I don't know if this is the best way or if it the more
secure way to run a command in a remore machine, try to search CPAN for a
module that can do something similar.
Pablo.
On 8/24/05,
Hang on. First you email the list asking for Perl Interview questions.
Then you email the list asking for answers to these questions.
If you cannot get through the interview based on your OWN PERSONAL
knowledge of Perl, you do not deserve to GET the job. If you are not the
level of
On Thu, 25 Aug 2005, Octavian Rasnita wrote:
I am trying to speed up a site that uses mod_perl because it works
slowly. I have done many changes in MySQL queries and they are working
now much faster, but the site is still slow and I think this is
because I use Template-Toolkit.
Do you
On 8/25/2005 10:46 AM praba har wrote:
Dear All,
Kindly let me know what is closure and why we
need it.
People will explain you what it is once you go through the FAQs of this
mailing list.
http://learn.perl.org/beginners-faq
[...]
2.2 - What is this list _not_ for?
* SPAM
Hi:
Try this:
variable_to_store = `rsh -l username hostname 'command arg1 arg2 ..`;
This works for me, I don't know if this is the best way or if it the more
secure way to run a command in a remore machine, try to search CPAN for a
module that can do something similar.
Pablo.
On 8/24/05,
Yes I have measured.
I have put in my program:
my $begin = (times)[0];
...code
my $step1 = (times)[0] - $begin;
...another piece of code
my $step2 = (times)[0] - $begin;
...and so on.
So I have seen how much time takes each piece of code.
After the last step in which tt parses the
On Wed, Aug 24, 2005 at 04:14:15PM -0400, Bob Showalter wrote:
A connect() followed by a close() is just another form of this scenario. You
need to have a client socket in order to detect the peer's closing the
connection.
That clarifies things quite nicely. Thank you very much!
--
Mason
Hello,
I have a script that uses the LWP module to pass data to a remote script B, that
process the data sent from script A
the code in script A passes data from a standard form to script B($post_url):
# send to paypro script via the LWP.
use LWP::UserAgent;
my $ua = new
Octavian Rasnita mailto:[EMAIL PROTECTED] wrote:
That's not the recommended method of testing template systems. See
http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html
for a comparison article. In the performance section IDs a reference to
a comparison available on line
Is there any easy to customize GUI-based menu-ing script for UNIX? I
currently have a text-base menu program for gluing my applications, and I
am interested in putting in revising it to a GUI-based (for a change).
Currently I am looking at aumenu, which according to the documentation, was
That all depends on how involved you want this project to be. Have you
looked at Tk?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 11:24 AM
To: beginners@perl.org
Subject: GUI-based menu-ing script for UNIX
Is there any easy to
CORRECTION: Perl/Tk?
-Original Message-
From: Timothy Johnson
Sent: Thursday, August 25, 2005 11:34 AM
To: [EMAIL PROTECTED]; beginners@perl.org
Subject: RE: GUI-based menu-ing script for UNIX
That all depends on how involved you want this project to be. Have you
looked at Tk?
Jeff 'japhy' Pinyan wrote:
On Aug 15, Scott R. Godin said:
Jeff 'japhy' Pinyan wrote:
Oh, Jolly Good! though I'm somewhat concerned with how much memory
that would take up. Ultimately this would be running as a cgi
processing a web-form submission.
Unless you're dealing with thousands of
Thank you. I also found that web page searching with Google and I think I
will try HTML::Template.
Teddy
- Original Message -
From: Charles K. Clarkson [EMAIL PROTECTED]
To: 'Perl Beginners List' beginners@perl.org
Sent: Thursday, August 25, 2005 19:28 PM
Subject: RE: faster templates
I seem to be erroring out @ the $session-login portion of my program
because the module that I am call is saying the password/username is
bad. How do I trap the error and exit cleanly without just dumping
from the application:
login failed: access denied or bad username at ./cisco.pl line 47
Chris Lyon wrote:
I seem to be erroring out @ the $session-login portion of my program
because the module that I am call is saying the password/username is
bad. How do I trap the error and exit cleanly without just dumping
from the application:
login failed: access denied or bad username
How come use MODULE VERSION; works sometimes and not others?
In this case:
$ perl -mstrict -we 'use CGI 3.12;print $CGI::VERSION\n;'
CGI version 3.12 required--this is only version 3.11 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
$ perl -mstrict -we 'use File::Copy::Recursive
JupiterHost.Net wrote:
How come use MODULE VERSION; works sometimes and not others?
In this case:
$ perl -mstrict -we 'use CGI 3.12;print $CGI::VERSION\n;'
CGI version 3.12 required--this is only version 3.11 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
$ perl -mstrict
Can someone please provide some assitance with a multi-line matching
problem? I have a datafile that looks like this:
Input file
START
foo1
bar1
END
START
foo2
bar2
END
START
foo3
bar3
END
I am trying to capture the contents between the START and END
delineators. Here is what I
Jose Malacara wrote:
Can someone please provide some assitance with a multi-line matching
problem? I have a datafile that looks like this:
Input file
START
foo1
bar1
END
START
foo2
bar2
END
START
foo3
bar3
END
I am trying to capture the contents between the START
On Aug 26, 2005, at 0:43, Jose Malacara wrote:
Can someone please provide some assitance with a multi-line matching
problem? I have a datafile that looks like this:
Input file
START
foo1
bar1
END
START
foo2
bar2
END
START
foo3
bar3
END
I am trying to capture the contents between
How do I get the list of files in a DIR and put in an array?
I'm drawing a blank on my search for this.
thanks
Lou
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Is there an ASCII equivalent to the numeric value UID returned by
stat($filename)[4] and if so is there a function to aquire the ASCII
value... Also is the UID related to the owner of the file as shown in
the directory display ls -al in Unix?
If UID and file ownership is not, however
On Thu, 25 Aug 2005, Luinrandir wrote:
How do I get the list of files in a DIR and put in an array?
I'm drawing a blank on my search for this.
Try writing a program instead, that seems to work better than drawing.
Some people use globs in their programs for this.
What did you try?
--
Luinrandir wrote:
How do I get the list of files in a DIR and put in an array?
perldoc -f opendir
perldoc -f readdir
perldoc -f glob
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Thanks.. I'll look it over
Lou
- Original Message -
From: John W. Krahn [EMAIL PROTECTED]
To: Perl Beginners beginners@perl.org
Sent: Thursday, August 25, 2005 6:26 PM
Subject: Re: Need a list of files in a dir.
Luinrandir wrote:
How do I get the list of files in a DIR and put in an
Your a funny dude Chris.
On 8/25/05, Chris Devers [EMAIL PROTECTED] wrote:
On Thu, 25 Aug 2005, Luinrandir wrote:
How do I get the list of files in a DIR and put in an array?
I'm drawing a blank on my search for this.
Try writing a program instead, that seems to work better than
Tony Frasketi wrote:
Is there an ASCII equivalent to the numeric value UID returned by
stat($filename)[4] and if so is there a function to aquire the ASCII
value... Also is the UID related to the owner of the file as shown in
the directory display ls -al in Unix?
If UID and file ownership
Hi Friends,
Can someone help me to get this module.
I am trying to dowbload the module from
http://search.cpan.org/search?query=first+day+of+every+weekmode=all
But it is corrupted.
It is little urgent.
Anil
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On Fri, 26 Aug 2005, Anil Kumar, Malyala wrote:
Can someone help me to get this module.
I am trying to dowbload the module from
http://search.cpan.org/search?query=first+day+of+every+weekmode=all
But it is corrupted.
It is little urgent.
If it was THAT urgent, you should have gotten
Thanks very much John.
John W. Krahn wrote:
Tony Frasketi wrote:
Is there an ASCII equivalent to the numeric value UID returned by
stat($filename)[4] and if so is there a function to aquire the ASCII
value... Also is the UID related to the owner of the file as shown in
the directory
Hi Chris,
I have issued the command sudo perl -MCPAN -e shell, but giving error
So then issued perl -MCPAN -e shell
Still it is executing... How much time does it take
The last statement showing is
Issuing C:\WINDOWS\system32\ftp.EXE -n
Local directory now C:\perl\.cpan\sources.
GOT
On Fri, 26 Aug 2005, Anil Kumar, Malyala wrote:
I have issued the command sudo perl -MCPAN -e shell, but giving
error So then issued perl -MCPAN -e shell
Still it is executing... How much time does it take
The last statement showing is
Issuing C:\WINDOWS\system32\ftp.EXE -n
Local
Chris,
I'm trying to fetch one
Issuing C:\WINDOWS\system32\ftp.EXE -n
Local directory now C:\perl\.cpan\sources.
GOT C:\perl\.cpan\sources\MIRRORED.BY
You have an empty C:\perl\.cpan\sources\MIRRORED.BY,
I'm trying to fetch one
Issuing C:\WINDOWS\system32\ftp.EXE -n
Local directory now
I've my script which uses Expect Module.
But the problem is that Expect module isn't installed by default ( at least in the machines
that I've checked, viz RH9 )
Can I write some code that will automatically install a module from CPAN if there isn't one?
--
On Fri, 26 Aug 2005, Binish A R wrote:
I've my script which uses Expect Module.
But the problem is that Expect module isn't installed by default ( at
least in the machines that I've checked, viz RH9 )
Can I write some code that will automatically install a module from
CPAN if there isn't
Chris Devers wrote:
On Fri, 26 Aug 2005, Binish A R wrote:
I've my script which uses Expect Module.
But the problem is that Expect module isn't installed by default ( at
least in the machines that I've checked, viz RH9 )
Can I write some code that will automatically install a
46 matches
Mail list logo