Saurabh Singhvi wrote:
> well i was trying to understand the "regular
> expressions" in perl when i came across
Please recognize this as the coincidence it is. Regular expressions
and filehandles are two different subjects. If you are somehow
linking the particular built-in filehandle with the
On Fri, Jun 06, 2003 at 04:12:11PM +1200 Voodoo Raja wrote:
> I have got a script running..
>
> Its ment to repeat a particular sub routine using the "after" syntax
What is the "after" syntax? Do you mean statement-modifiers as in
function() for 1 .. 10;
?
> All i want to do is clear ev
"Paul Kraus" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This may be asking for biased opinions but here goes anyways...
>
> Is perl still a good choice for the web. For instance I need to setup a
> couple sites that are going to be running on IIS. Is perl still a good
> choice f
"Michael Weber" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Just wondering.
>
> After I debug my perl scripts do I still need the strict and warnings
> flags?
>
> Does it hurt performance having them?
>
> Does it hurt security removing them?
>
> The scripts are for system admin o
"Clint" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I was able to get it fixed. Here's what I did in case someone else runs
into
> the same problem:
>
> Changed from these lines:
> my $image = new GD::Image(401,201); (btw: this line is different than
what
> is found in the text
Hi there
I have got a script running..
Its ment to repeat a particular sub routine using the "after" syntax
All i want to do is clear everything in buffer ... since it eats up the
memory
I do not need any varaibles which I have defined in the sub.
there are more then enough to init manually
- Original Message -
From: "Jair Santos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 7:00 PM
Subject: Is empty directory?
> Hi all,
>
> does anybody knows how to check if a diretory is empty?
You can open it {opendir } and see for your self {readdir}
Ma
On Thu, Jun 05, 2003 at 02:56:01PM +0530, [EMAIL PROTECTED] wrote:
> >Is there a perl function/module that will help me calculate the difference
>
> >between two files?
> >Something like the diff Unix command.
>
> There is a perl module which can do the same.
>
> Check out http://search.cpan.or
On Sat, 31 May 2003 20:55:13 +0530, Aman Thind wrote:
> Hi All
>
> How can I send a free SMS through perl ?
>
> I am fighting a losing battle with WWW-SMS-0.09.
>
> I created an account on gomobile.ch but everytime i try to send an sms using
> gomobile as the submodule I get an error msg saying
I don't have the root permission and I can't write to the root folder. I
set the "PREFIX=/mz/hd/liuyi", and I changed the following direction:
INSTALLPRIVLIB
INSTALLARCHLIB
INSTALLSITELIB
INSTALLSITEARCH
INSTALLBIN
INSTALLSCRIPT
INSTALLMAN1DIR
INSTALLMAN3DIR
such as: INSTALLPRIVLIB=$(PREFIX)/perl5/
you can use File::Compare module to achieve that.
> --
> From: Ohad Ohad[SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: Unix diff in perl
>
> hey,
>
> Is there a perl function/module that will help me calculate th
Try this as a starting point for the description of the Office Object model:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaof10/htm
l/oftocObjectModelApplication.asp
In order to disect Type-Libraries, which contain information about
Objects/Methods either use the OLE-Browser
I am just learning about OO programming and it is definitely really cool. I am
reading David Roth's Win 32 Perl Programming and he uses word and excel as example
applications. He calls a bunch of different (I think the term i am looking for here
is methods but I just posted a question about me
use File::Compare
> --
> From: Ohad Ohad[SMTP:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: Unix diff in perl
>
> hey,
>
> Is there a perl function/module that will help me calculate the difference
>
> between two fil
>hey,
>
>Is there a perl function/module that will help me calculate the difference
>between two files?
>Something like the diff Unix command.
>
>10x
>Ohad.
There is a perl module which can do the same.
Check out http://search.cpan.org/search?query=diff&mode=all for more
information.
--
hey,
Is there a perl function/module that will help me calculate the difference
between two files?
Something like the diff Unix command.
10x
Ohad.
_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/
Hi Joshua
Joshua Scott wrote:
> Good evening,
>
> I'm having a hard time figuring out how to make a portion of my
> script work. Basically I'd like to split a specific field and use
> the names from an array as the scalar variable names for each
> field. Here is a snip of my code:
>
> # Begin Cod
James Edward Gray II wrote:
> On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
>
> > > Does it hurt performance having them?
> >
> > No.
>
> Are we sure about this? I find it really hard to believe that
> 'warnings' isn't affecting performance on some level. I doubt it's
> a big hit
Good evening,
I'm having a hard time figuring out how to make a portion of my script work.
Basically I'd like to split a specific field and use the names from an array
as the scalar variable names for each field. Here is a snip of my code:
# Begin Code
$data = "A Tab Separated Dat
On Wed, Jun 04, 2003 at 03:58:44PM -0500 James Edward Gray II wrote:
> On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
>
> >>Does it hurt performance having them?
> >
> >No.
>
> Are we sure about this? I find it really hard to believe that
> 'warnings' isn't affecting performance
Jeff Westman wrote:
> Hi Rob,
>
> --- Rob Dixon <[EMAIL PROTECTED]> wrote:
> > Jeff Westman wrote:
> > > --- George Schlossnagle <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David ---
> > > > Senior Programmer Analyst --- WGO wrote:
> > > >
> > > > >
James,
> Tie::File can be retrieved off of the CPAN for earlier versions of Perl
> where is wasn't standard, if you can install modules.
Yeah. Sadly, it's a vendor system :-( I can't install anything.
Happily, copying file content is very fast, even with 40,727 lines in the
file!
--
-Josh
On Wednesday, June 4, 2003, at 04:43 PM, Josh Berkus wrote:
Looks like I'd be able to do this if I was using 5.80, but I'm not :-(
Tie::File can be retrieved off of the CPAN for earlier versions of Perl
where is wasn't standard, if you can install modules.
James
--
To unsubscribe, e-mail: [EMA
John, Beau,
> This is a Frequently Asked Question and the answer can be found in
> Perl's FAQs.
>
> perldoc -q "beginning of a file"
Thanks! The perldoc -q technique is really good to know about.
Looks like I'd be able to do this if I was using 5.80, but I'm not :-(
So I'll just transfer th
Josh Berkus wrote:
>
> Folks,
Hello,
> Hit there! I just joined the list. Amazing what one can do with rudimentary
> web-browsing skills.
>
> Is there any easy way to append a line or lines to the *beginning* of a text
> file? I've been through the Llama and Camel books, and the perldoc for
- Original Message -
From: "Josh Berkus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 11:17 AM
Subject: Appending to beginning of file?
Folks,
Hit there! I just joined the list. Amazing what one can do with
rudimentary
web-browsing skills.
Is there any
Folks,
Hit there! I just joined the list. Amazing what one can do with rudimentary
web-browsing skills.
Is there any easy way to append a line or lines to the *beginning* of a text
file? I've been through the Llama and Camel books, and the perldoc for Open,
and I can't seem to find an easy
On Wed, Jun 04, 2003 at 03:58:44PM -0500, James Edward Gray II wrote:
> On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
>
> >>Does it hurt performance having them?
> >
> >No.
>
> Are we sure about this? I find it really hard to believe that
> 'warnings' isn't affecting performanc
James Edward Gray II wrote:
>
> On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
>
> >> Does it hurt performance having them?
> >
> > No.
>
> Are we sure about this? I find it really hard to believe that
> 'warnings' isn't affecting performance on some level. I doubt it's a
> big
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote:
Does it hurt performance having them?
No.
Are we sure about this? I find it really hard to believe that
'warnings' isn't affecting performance on some level. I doubt it's a
big hit, but I would be very surprised if it doesn't cost
That did the trcik! Nice and clean, thanks Rob
> -Original Message-
> From: Hanson, Rob [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 2:55 PM
> To: Dan Muey; [EMAIL PROTECTED]
> Subject: RE: Modify links
>
>
> Try using URI to figure out the absolute URL.
>
> use URI;
>
>
Michael Weber wrote:
>
> Just wondering.
>
> After I debug my perl scripts do I still need the strict and warnings
> flags?
No.
> Does it hurt performance having them?
No.
> Does it hurt security removing them?
No.
> The scripts are for system admin only, not CGI where I would assume
> they
"John W. Krahn" wrote:
>
> Zentara wrote:
> >
> > All programs have 3 default input-output filehandles,
> ^
> 5
>
> > they are STDIN, STDOUT, and STDERR.
>
> ARGV, ARGVOUT
Or eight if you include stdin, stdout and stderr.
:-)
John
--
use Perl;
program
Just wondering.
After I debug my perl scripts do I still need the strict and warnings
flags?
Does it hurt performance having them?
Does it hurt security removing them?
The scripts are for system admin only, not CGI where I would assume
they should be left in.
Thanx!
-Michael
--
To unsubscri
Zentara wrote:
>
> On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED]
> (Saurabh Singhvi) wrote:
>
> >well i was trying to understand the "regular
> >expressions" in perl when i came across i
> >tried my best but i havent been able to get the
> >slightest idea on how the input thing work
Try using URI to figure out the absolute URL.
use URI;
# the base is the *current absolute page*
my $base_url = 'http://foo.com/documents/help.html';
print URI->new_abs('doc1.html', $base_url), "\n";
print URI->new_abs('./doc2.html', $base_url), "\n";
print URI->new_abs('../documents/doc3.html',
I'm trying to work out a regex that will do this:
Take an entire page's html: my $html_code; # all lines in thes one variable
And make any href's that are relative absolute by prepending $url into them:
$url = "http://myclonesite.com";;
make into http://myclonesite.com/documents/
Hi Rob,
--- Rob Dixon <[EMAIL PROTECTED]> wrote:
> Jeff Westman wrote:
> > --- George Schlossnagle <[EMAIL PROTECTED]> wrote:
> > >
> > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
> > > Programmer Analyst --- WGO wrote:
> > >
> > > > Jeff Westman wrote:
> > > > > This may
On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED]
(Saurabh Singhvi) wrote:
>well i was trying to understand the "regular
>expressions" in perl when i came across i
>tried my best but i havent been able to get the
>slightest idea on how the input thing works. The
>editor i use is DzSoft.
Jeff Westman wrote:
> --- George Schlossnagle <[EMAIL PROTECTED]> wrote:
> >
> > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
> > Programmer Analyst --- WGO wrote:
> >
> > > Jeff Westman wrote:
> > > > This may sound trivial, but I am trying to declare and assign
> > > > multi
try
my ($a,$b)=("apples","apples");
In the other example it was pulling values from an array of scalars.
In your example you are only providing 1 scalar for 2 scalar variables to
share.
Royce
"The right word may be effective, but no word was ever as effective as a
rightly timed pause."
Zentara wrote:
>
> On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul
> Morris) wrote:
>
> >I found this at:
> >
> >http://www.suse.com/us/private/support/howto/secprog/secprog8.html
> >
> >...but am having difficulty working it out, because it doesn't seem to
> >do what I think it shoul
I like this solution! Cool
Thanks George and David.
JW
--- George Schlossnagle <[EMAIL PROTECTED]> wrote:
>
> On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
> Programmer Analyst --- WGO wrote:
>
> > Jeff Westman wrote:
> >> This may sound trivial, but I am trying to
yeah, that works, but I was trying to do it in one statement as a scalar
assigment.
Thanks
JW
--- Stuart White <[EMAIL PROTECTED]> wrote:
> Would declaring all your variables with one my
> suffice? then your first line before use strict;
> should work. Like this:
>
> my ($a, $b);
> $a = $b =
Would declaring all your variables with one my
suffice? then your first line before use strict;
should work. Like this:
my ($a, $b);
$a = $b = 'apple';
--- Jeff Westman <[EMAIL PROTECTED]> wrote:
> This may sound trivial, but I am trying to declare
> and assign multiple
> scalars to the same v
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
Programmer Analyst --- WGO wrote:
Jeff Westman wrote:
This may sound trivial, but I am trying to declare and assign multiple
scalars to the same variable in the same statement. This is what I
have:
#!/bin/perl -w
$a = $b = "app
On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul
Morris) wrote:
>I found this at:
>
>http://www.suse.com/us/private/support/howto/secprog/secprog8.html
>
>...but am having difficulty working it out, because it doesn't seem to
>do what I think it should (and "I" may be the problem!).
>
Jeff Westman wrote:
> This may sound trivial, but I am trying to declare and assign multiple
> scalars to the same variable in the same statement. This is what I
> have:
>
> #!/bin/perl -w
> $a = $b = "apple";# works
> use strict;
> my ($a = $b) = "apple"; # does not works
do:
my (
I'm trying to figure out how to get a directory or text entry in Perl/Tk. I
am very new to this, but I can't figure out why this won't work. It works
maybe 1 time out of 10. The rest of the time I get this error:
Tk::Error: grab failed: window not viewable at
/usr/lib/perl5/sit
This may sound trivial, but I am trying to declare and assign multiple
scalars to the same variable in the same statement. This is what I have:
#!/bin/perl -w
$a = $b = "apple";# works
use strict;
my ($a = $b) = "apple"; # does not works
my $a = my $b = "apple"; # works .. but loo
From: Angel Gabriel <[EMAIL PROTECTED]>
> As some of you know, I'm attempting to create an internal system to
> automate some stuff. This is how I plan to do this...
>
>
>
> #!/usr/local/bin/perl
>
> include email reading modules
use Net::POP3;
#or
# use Mail::POP3Client;
> include grep
Paul Kraus wrote at Wed, 04 Jun 2003 09:49:10 -0400:
> This may be asking for biased opinions but here goes anyways...
>
> Is perl still a good choice for the web. For instance I need to setup a
> couple sites that are going to be running on IIS. Is perl still a good
> choice for speed ect...
In
Angel Gabriel wrote at Wed, 04 Jun 2003 17:44:28 +0100:
> As some of you know, I'm attempting to create an internal system to
> automate some stuff. This is how I plan to do this...
Year, that's exactly the way, you should start.
It will be possible to translate your pseudo code nearly 1:1 to Per
Thank you! The separating comma was what I was leaving out. Also, I
wanted to actually print the variable name, so I escaped the $ symbol.
Deb
On Wednesday, June 4, 2003, at 12:00 PM, James Edward Gray II wrote:
On Wednesday, June 4, 2003, at 11:47 AM, deborah wrote:
Example: I want to print
James Edward Gray II <[EMAIL PROTECTED]> writes:
> On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
>
>> Where is this preceding space coming from:
>> print FILE "@array";
>
> It's coming from your interpolation of the array in a string
> ("@array"). It joins them, adding a space be
As some of you know, I'm attempting to create an internal system to
automate some stuff. This is how I plan to do this...
#!/usr/local/bin/perl
include email reading modules
include grep modules (if exists, not found any yet)
include MySQL writing modules
read email from pop mail box
take
How do you get Perl to print an operator as a string? I want to print a
mathematical expression and then print the answer. I've tried every
combination that I can think of, but the script keeps getting aborted
"due to compilation errors" because "string found where operator
expected." Well, yea
I have the following code to create a record into 2 tables in my SQL
database. The 2 tables are WorkRequest where WRID is the KEY/Unique
Identifier and File_details where FileID is the KEY/Unique Identifier but
has WRID as a KEY for linking to the Work Request table.
When I run this code, it will
Harry Putnam wrote:
> Probably painfully obvious...
>
> Where is this preceding space coming from:
>
> cat test_space.pl
> ^
> #!/usr/local/bin/perl -w
> open(FILE,">file");
> @array = (
> "line 1\n",
> "line 2\n",
> "line 3\n",
> "\n",
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
Where is this preceding space coming from:
print FILE "@array";
It's coming from your interpolation of the array in a string
("@array"). It joins them, adding a space between them by default.
Try this:
print FILE join '', @array;
Probably painfully obvious...
Where is this preceding space coming from:
cat test_space.pl
^
#!/usr/local/bin/perl -w
open(FILE,">file");
@array = (
"line 1\n",
"line 2\n",
"line 3\n",
"\n",
);
print FILE "@array";
system("cat
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Michael Muratet) writes:
>Greetings
>
>I am trying to resolve a problem I had with the perl 5.8 that comes
>bundled with RedHat 9.0. It absolutely would not parse a regex the way
>it should, and so I downloaded a new tarball from CPAN and reloaded
> Begin forwarded message:
>
> Date: Wed, 4 Jun 2003 11:20:44 -0500
> From: Michael Muratet <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Where is @INC saved and other installation issues
>
> How do I get things _really_ clean? Where does @INC live? I'd like to
> start over, keep the R
From: Shlomi Fish <[EMAIL PROTECTED]>
> On Wed, 4 Jun 2003, Paul Kraus wrote:
>
> > This may be asking for biased opinions but here goes anyways...
> >
> > Is perl still a good choice for the web.
>
> Yes. Perl is a very good choice from all aspects.
Definitely. Wish the bosses would see that.
Greetings
I am trying to resolve a problem I had with the perl 5.8 that comes
bundled with RedHat 9.0. It absolutely would not parse a regex the way
it should, and so I downloaded a new tarball from CPAN and reloaded
perl. RedHat puts perl in /usr/lib/perl5 rather than
/usr/local/lib/perl5 and I l
> Dan,
>
> Thanx a million for your help...It's given me more to
> look at and figure out.
No sweat, this list has helped me out a zillion times.
>
> Hope I can return the favour sometime!
Cool.
>
> Regards
> Ben
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
OK, for anyone who runs into this or for myself if this happens again...
I removed everything Perl and re-installed the ActiveState version
(ActivePerl-5.8.0.806-MSWin32-x86.msi)... got the exact same error... so I
removed everything again and installed an older version
(ActivePerl-5.8.0.804-MSWin
Dan Muey wrote:
> > > So now my questions would be:
> > > Can you open 216.239.51.100 in a browser? www.google.com
> > > Can you open 172.20.250.1 in a browser? www.wokingham.gov.uk
> >
> > Yes for both...I'm checking to see if the protocol is
> > okay as we have a firewall and that may be
> >
Dan,
Thanx a million for your help...It's given me more to
look at and figure out.
Hope I can return the favour sometime!
Regards
Ben
__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
To unsubscribe,
Here :
http://lists.perl.org/showlist.cgi?name=libwww
http://lists.perl.org/
José.
> -Original Message-
> From: Dan Muey [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 4:27 PM
> To: Ben Crane
> Cc: [EMAIL PROTECTED]
> Subject: RE: cgi LWP::Simple script and Apache
>
>
> > >
> > So now my questions would be:
> > Can you open 216.239.51.100 in a browser?
> www.google.com
> > Can you open 172.20.250.1 in a browser?
> www.wokingham.gov.uk
>
> Yes for both...I'm checking to see if the protocol is
> okay as we have a firewall and that may be
> interfering...
Perha
On Wed, 4 Jun 2003, Paul Kraus wrote:
> This may be asking for biased opinions but here goes anyways...
>
> Is perl still a good choice for the web.
Yes. Perl is a very good choice from all aspects.
> For instance I need to setup a
> couple sites that are going to be running on IIS. Is perl stil
From: "Paul Kraus" <[EMAIL PROTECTED]>
Subject: Perl - Web Development
Date: Wed, 4 Jun 2003 09:49:10 -0400
> This may be asking for biased opinions but here goes anyways...
>
> Is perl still a good choice for the web. For instance I need to setup a
> couple sites that are going to be running on
73 matches
Mail list logo