Hello all,
My friend (who doesn't English too well yet) has been emailing me asking
about a guestbook he made. It sounds like he wants to archive his message
files with a certain format and back them up automatically everyday. Here's
his last email to me:
i want to store all those message
Hi Everyone,
I'm writing a program that allows people to send emails with
attachments via a web page. It stores these attachments encoded on the
hard disk like they would look in the final text file that gets send.
For some reason, IE and Opera isn't reading a value from
Hi
Could any one write some coding for the problem.
In perl against Linx could someone help.
I want to write a script that reads in four numbers from STDIN and add the first two
together, and than adds the second 2 together.
The input format is a number on a line.(press enter after every
Hi all,
Do you know where I can find a good free tutorial or manual for the regular
expressions in Perl?
Thank you.
Teddy,
My dear email address is [EMAIL PROTECTED]
_
Do You Yahoo!?
Get your free @yahoo.com address at
On Thu, 7 Feb 2002, Bruce Ambraal wrote:
Could any one write some coding for the problem.
In perl against Linx could someone help.
I want to write a script that reads in four numbers from STDIN and add
the first two together, and than adds the second 2 together.
The input format is a
Hi gurus,
Am working on a script to generate a sequence of GIFs in an img tag, when i run this
script from dos, it works OK and generate the appropriate headers, but when running
under a web page - hosted by Apache v 1.3 on XP - it doesn't do anything, and i use
CGI::Carp(fatalsToBrowser);
.snip...
The input format is a number on a line.(press enter after every number)
I also want to ompare the resulting two numbers with or and print
the largest on STDOUT.
Is this a homework problem perchance?
heh heh heh...I thought exactly the same thing when I read it.
glad you
Hi there:
I'm currently in a programming situation where my Perl CGI program a)
displays an online merchandise database ... b) allows the end-user to
select items from that database listing on an HTML page ... c) displays a
summary screen ... and then d) sends the info to a secured server
- Original Message -
From: Octavian Rasnita [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 4:37 PM
Subject: regular expressions
Hi all,
Do you know where I can find a good free tutorial or manual for the regular
expressions in Perl?
Thank you.
I don't
we wroted a perl code to fetch some information we want from a web site. The code is
as below:
#!/usr/bin/perl
use LWP::Simple;
use HTML::Parse;
use HTML::FormatText;
use CGI;
$query = new CGI;
my ($html, $ascii);
$html = get(http://www.tcmb.gov.tr/kurlar/today.html;);
defined $html or die
On Thu, 7 Feb 2002, GsuLinuX wrote:
we wroted a perl code to fetch some information we want from a web site. The code is
as below:
#!/usr/bin/perl
use LWP::Simple;
use HTML::Parse;
snippage
We have the debug error:
Can't locate HTML/Parse.pm in @INC(@INC contains:
use HTML::Parse;
The module is called HTML::Parser.
uwe
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Thu, 7 Feb 2002, Uwe Voelker wrote:
use HTML::Parse;
The module is called HTML::Parser.
A further investigation via CPAN showed me that HTML::Parse is part of the
HTML::Tree bundle and is now actually a deprecated module, according to
the readme.
-- Brett
I have a question about passing data through URL's. I'm passing hashes in a
CGI script, but sometimes when I click on a link that passes a larger hash,
nothing happens. I don't get any message. I'm guessing there is a limit to
the amount of data I can pass through a URL? If this is the case,
Hi. Thanks for the response. I'm passing the hash with an href in this
manner. So does this mean that I'm not using get or post?
$query = CGI-new({red = [%{$clusArrayHash[$i]}]})-query_string;
print pre h6 ( , a ({ -href =
http://140.247.111.176/cgi-bin/redundancies.pl?red=$query; },
Ok, you have reason, it must be parser but after it continues to give some
module errors...
Can u say me if my method is true, to fetch some information from a web
site?
thanks
funky
Istanbul
- Original Message -
From: Brett W. McCoy [EMAIL PROTECTED]
To: Uwe Voelker [EMAIL PROTECTED]
Hi,I am using Perl ver 5.6.1.
I have downloaded the NET::Telnet
module and is able to log into telnet.
But what I am unable to do is to open/edit a file
from the client side.
I had read the documenation and still unable to open
the file using the fhopen method and get method.
The documenation
Steven M. Klass wrote:
Hi all,
Here is the general problem. I have a file that I need to edit but can't.
im not sure i follow you here, making a backup copy is not an option?
perl -pi.bak -e 's/foo/bar/g' weird_uneditable_file;some_app
weird_uneditable_file;mv
man Net::Telnet
Walter
Hi anyone how to use the cmd command
in the NET::TELNET module.
I knows it issues command and retrieve output.
I try using it in my program but there is no output.
Is there anything I should prepare for in the server
side before using the cmd command.
Can anyone
Hi,
I recommend using 'Perl By Example' author Ellie Quigley. I have no
background programming experience at all, I am a Pharmacy student at
Uni. I have been exposed to more than 3/4 of the book by doing examples
and excercies at the end of each chapter; I've found it stimulating and
excellent,
From: Scott Lutz [mailto:[EMAIL PROTECTED]]
Does anyone have any ideas or suggestions to actually
reading/modifying/making the infamous .dat files that are spread all
over the Win32 file system?
I would like to see what is in them, and maybe edit if I choose, and
wonder if there is a
On Wed, Feb 06, 2002 at 06:12:38PM -0500, McElwee, wrote:
Hi,
I'm capturing data from a proprietary database to a flat file and I want to
create tables and insert rows of data into those tables. From what I've read
as long as the number of columns matches the number of elements in a row I
How do I match a pattern that starts with a 4 and has 16 numbers in it.
I try /^4\d{16}/;
Also how do I match a 16 digit number that starts with either 6565 or
starts with a number in the range of 555000-555100
/(^6565(\d{16})|^{555000-555100}(\d{16}))/
Is it possible to issue multiple concurrent commands to system (for
instance) from within a perl script?
If it is (and I strongly suspect that it must be) would someone please
be so kind as to suggest some terms or perl commands to look up. (I
suspect the term threading might appear but I don't
All,
using the following code under W2K Activestate v5.6.1 (629), I get the
date output as : 20 days ago, it was 20020118
I would like to drop the leading '20' in 2002 so it would read: 20 days ago, it
was 020118. I know I could just rip it out but I would like to know how to
return
On Wed, Feb 06, 2002 at 08:59:36PM -0500, RunningBarrels wrote:
Also which books would you recommend to someone with limited programming
experience and no perl?
Learning Perl is a good place to start. I still use my copy if I forget
something. It's a good read, like most of the O'Reilly
On Thu, Feb 07, 2002 at 11:10:14PM +1100, Stuart wrote:
How do I match a pattern that starts with a 4 and has 16 numbers in it.
I try /^4\d{16}/;
If it consists of 16 numbers try:
/^4\d{15}/;
Also how do I match a 16 digit number that starts with either 6565 or
starts with a number in
Man Net::Telnet? Sure. But not in the spirit of this list at all. I agree to
encourage the use of documentation, but this is a little *too* terse.
Matt
--- walter valenti [EMAIL PROTECTED] wrote:
man Net::Telnet
Walter
Hi anyone how to use the cmd command
in the NET::TELNET module.
On Thu, Feb 07, 2002 at 12:17:42PM +, 'Perl wrote:
/^(6565\d{12})|(555[10]00\d{10})/
Perhaps..
not tested mind.
evidently..
/^(6565\d{12})|(555[10]\d{12})/
will manage numbers in the range 555000-555199, not ideal
/^((6565\d{2})|(555(0\d{2})|(100))\d{10})/
will manage the right
From: Mason, Andrew [EMAIL PROTECTED]
Is it possible to issue multiple concurrent commands to system (for
instance) from within a perl script?
If it is (and I strongly suspect that it must be) would someone please
be so kind as to suggest some terms or perl commands to
HI, I wanted to kill a process INETD by code:by hand in the cygwin bash i tried
this:
ps |awk '/INETD/{print $1}'|xargs kill
and it works, now i wanted to do it by Perl code:
I tried:
system( c:\\cygwin\\bin\\bash.exe('ps |awk '/INETD$/{print $1}|xargs kill'))
or
system(c:\\cygwin\\bin\\ps.exe
Title: Glacier
I
am developing the text file browser for the file of size 100MB. "less" Unix
command is pager for doing the same . I am developing the GUI interface for the
same.
I
am using the Expect/ TCL/ TK to build the GUI for the unix command "less". In
"less", 'f' key forwards the
Is it possible to open a brand new browser window and set it's size,
location and characteristics (no menu bar, no status bar, etc.) using Perl
or is it necessary to always use the same window that has called the script?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hello all,
My friend (who doesn't English too well yet) has been emailing me asking
about a guestbook he made. It sounds like he wants to archive his message
files with a certain format and back them up automatically everyday. Here's
his last email to me:
i want to store all those message
[EMAIL PROTECTED] wrote:
Hi everyone,
I'm a complete newbie to perl and programming. I'm a computer science
freshman at Cal Poly SLO, and am only in CPE 102 where we are studying the
fundamentals of JAVA. However, because I make websites I am very interested
in perl, and would like to
At 03:58 PM 2/6/2002 -0600, Booher Timothy B 1stLt AFRL/MNAC wrote:
Hello. I am trying to run a simple command to remove all the leading spaces
from a file and it just isn't working. No errors, just no results - still a
lot of leading spaces on each line.
%perl -pi.bak -e 's/^\s+//' bomb1.txt
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 7:02 AM
To: [EMAIL PROTECTED]
Subject: Date::Calc date returned format
All,
using the following code under W2K Activestate v5.6.1
(629), I get the
date output as :
Hi all,
Can anyone help please?
# example values
$Charge = 55;
$CreditCard = 423452345654532;
$VisaCard = /^4\d{15}/;
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
if ($Charge 0 (($VisaCard|$BankCard),$CreditCard) ) { # This bit
doesn't work?
Print The credit card number is
-Original Message-
From: Mason, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 7:11 AM
To: [EMAIL PROTECTED]
Subject: Issuing multiple concurrent commands (to system)
Is it possible to issue multiple concurrent commands to system (for
instance) from within
In a message dated 1/28/02 1:16:55 AM Pacific Standard Time,
[EMAIL PROTECTED] writes:
I have a sub routine that I use for making all numbers calculate to two
decimals places which I use for calculating money values.
I will place it on my website.
The site is new and only displays well in
On Fri, Feb 08, 2002 at 01:44:17AM +1100, Stuart wrote:
Hi all,
Can anyone help please?
# example values
$Charge = 55;
$CreditCard = 423452345654532;
$VisaCard = /^4\d{15}/;
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
does something like:
$okayflag = /^4\d{15}/ ||
Stuart Clark wrote:
Hi all,
Can anyone help please?
# example values
$Charge = 55;
$CreditCard = 423452345654532;
$VisaCard = /^4\d{15}/;
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
The regular expressions will try to match the contents of $_ here. From your
previous posts I
Is it possible to open a brand new browser window and set it's size,
location and characteristics (no menu bar, no status bar, etc.) using Perl
or is it necessary to always use the same window that has called the script?
With Perl, no. But you can certainly tell Perl to send some javascript
I was happily programming, getting close to the end of my project just trying
to figure out table placement in html within my largest function on the page.
All of a sudden my function won't function! I didn't change any of the perl
code! And it was fine except for table placement! Well, I
[EMAIL PROTECTED] wrote:
I was happily programming, getting close to the end of my project just trying
to figure out table placement in html within my largest function on the page.
All of a sudden my function won't function! I didn't change any of the perl
code! And it was fine except
This doesn't seem to work... My webhost is running PERL 5.004_04
I tried just the following test.pl
#!/usr/local/bin/perl -w
use strict;
my @body;
$body[0] = Test Data:\n;
$body[1] = foo\n;
$body[2] = I should be below bar\n;
s/foo/bar/ for @body;
print @body;
and I get
syntax
I hate it when I make a post and then answer my own questions, but Morbus
made me recall the window resizing and moving methods useable via
JavaScript. If I were to print the new page with an onLoad event that
called the resizeTo and moveTo methods, I can resize and move my windows
anywhere I
From: Lysander [EMAIL PROTECTED]
This doesn't seem to work... My webhost is running PERL 5.004_04
s/foo/bar/ for @body;
Too old perl for this. Use
for (@body) {
s/foo/bar/;
}
instead.
Jenda
=== [EMAIL PROTECTED] ==
My program won't compile when the sub routine is in the program,
but when I remove it from the program and put it into another file
that I call test.pl, and compile test.pl which contains only the sub
routine I'm checking, it compiles fine!
Why does it do that?
On Thu, 7 Feb 2002 [EMAIL PROTECTED] wrote:
My program won't compile when the sub routine is in the program,
but when I remove it from the program and put it into another file
that I call test.pl, and compile test.pl which contains only the sub
routine I'm checking, it compiles fine!
Why
Magic??
Why don't you start by posting the errors that perl reports. It will save us
having to guess...
John
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 15:42
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Never had this happen
Hi, Iw onder if there is a way to obtain the PID of a process with perl?
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The file(s) I really wanted to look into is the index.dat that contains all
cookie information, and browser session info.
I am going to try a hex editor to see what I can see.
Thanks!
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002
Jorge Goncalvez wrote:
$pid=$$;
### the special variable $$ contains the owner process
Walter
Hi, Iw onder if there is a way to obtain the PID of a process with perl?
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
what do the below actually do? they look like dutch to me
$VisaCard = /^4\d{15}/;
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think the match is wrong...
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
should be
$BankCard = /^(?:(6565\d{12})|(555[10]00\d{10}))/;
the first says starting with 6565 and 12 more digits or contains 555 and 0
or 1 and 00 and 10 digits
So dlsfkj55500099 will match.
the second won't
-Original Message-
From: Darren Simpson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 11:17 AM
To: Perl List
Subject: RE: simple question
what do the below actually do? they look like dutch to me
$VisaCard = /^4\d{15}/;
/^4\d{15}/ is a regular expression match
Sorry ,
I have been programming all night and found an oversight on my part.
Perl reported and error in a sub routine, but the error was above the
routine
above some of my comment lines where I didn't expect it to be.
!-- END COLUMN HEADINGS OF CART --
That was part of html code that was
On Feb 7, Stuart Clark said:
How do I match a pattern that starts with a 4 and has 16 numbers in it.
I try /^4\d{16}/;
That's quite vague. Do you mean the string must start with a 4 and
consist ONLY of 16 digits?
/^4\d{15}$/
Also how do I match a 16 digit number that starts with either
On Feb 8, Stuart Clark said:
if ($Charge 0 (($VisaCard|$BankCard),$CreditCard) ) { # This bit
doesn't work?
What is ((A | B), C) trying to do? Perhaps you want:
(($VisaCard || $BankCard) $CreditCard)
}elsif ($CreditCard = $Charge 0 ) { # Is ok for a null entry?
You need to use eq
On Feb 8, Stuart Clark said:
$Charge = 55;
$CreditCard = 423452345654532;
$VisaCard = /^4\d{15}/;
$BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
You can't store regexes that way. You need to use the qr// operator.
$VisaCard = qr/^4\d{15}$/;
# likewise for $BankCard
if ($Charge 0
Hi ALL
Could any one write some coding for the following problem.
In perl against Linx could someone help.
---
I want to write a script that reads in four numbers from STDIN and add
This will do it:
#!/usr/local/bin/expect -f
#exp_internal 1 #--- you
could uncomment this to turn debug mod on
set timeout 2
set prompt (%|#|\\$) $;# default prompt
log_user 1
catch {set prompt $env(EXPECT_PROMPT)}
eval spawn
Yeah. I can write code to do that. Thanks for asking.
This has the hallmarks of a homework assignment...
John
-Original Message-
From: Bruce Ambraal [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 16:31
To: [EMAIL PROTECTED]
Subject: HELP! : To write a script that reads numbers from
If you could show us what you have already done, maybe we could help show
you what you are doing wrong...we normally don't do homework for other
people :)
- Original Message -
From: Bruce Ambraal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 11:31 AM
Subject:
All,
My input looks like this
==
5544#1341343BORIS
6200#321BOWSER
89232652#6213VERONICA
===
I want to put a delimiter (#) between the rightmost number and the left most
alpha
Resulting in
5544#1341343#BORIS
6200#321#BOWSER
89232652#6213#VERONICA
s/(\d)([a-z])/$1#$2/i;
that's not a very good way to store women's phone numbers.
I like to us a little black book.
-Original Message-
From: Frank Newland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 12:28 PM
To: [EMAIL PROTECTED]
Subject: Insert delimiter between number
On Thu, Feb 07, 2002 at 11:27:53AM -0600, Frank wrote:
All,
My input looks like this
==
5544#1341343BORIS
6200#321BOWSER
89232652#6213VERONICA
===
I want to put a delimiter (#) between the rightmost number and the left most
alpha
Resulting in
On Feb 7, Frank Newland said:
I want to put a delimiter (#) between the rightmost number and the left most
alpha
s/(\d)([^\W\d])/$1#$2/;
You can't just say (\d)(\w), because \w INCLUDES \d. You could write
something like (\d)(?!\d)(\w), which requires that the \w character after
the \d NOT
Lysander == Lysander [EMAIL PROTECTED] writes:
Lysander This doesn't seem to work... My webhost is running PERL 5.004_04
That's your problem. For older Perls, you can use
for (@body) { s/foo/bar/ }
This works:
s/foo/bar/ for @body;
presuming you have a reasonably modern
I want to store a really really big integer... like:
184884258895036416
in a varible and do a -- on it.
how can I store such a number? and what's the limit? (this is on a Solaris
2.6 machine).
Nikola Janceski
Summit Systems, Inc.
212-896-3400
If the facts don't fit the theory, change the
You can use the Math::BigInt module.
perldoc Math::BigInt
- Original Message -
From: Nikola Janceski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 12:54 PM
Subject: how big can I make it?
I want to store a really really big integer... like:
I have two hashes (%a and %b) that contain data for one person from two
different systems and I want to compare these hashes to see if the
systems are out of sync. The catch is I know that some of the fields
will always be different and I want to ignore those fields. Below is my
solution, does
Let me be a little more specific.
I want to take a BIG hex number and subtract 1 from it and print it out
again.
ie: FFF - FE
-Original Message-
From: Tanton Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 12:57 PM
To: Nikola Janceski;
On Feb 7, Chas Owens said:
I have two hashes (%a and %b) that contain data for one person from two
different systems and I want to compare these hashes to see if the
systems are out of sync. The catch is I know that some of the fields
will always be different and I want to ignore those fields.
The onlym thing I can think of is to split the string into an array and
write a subroutine to properly add one to correct elements.
I am hoping there is something easier.
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:17 PM
To:
On Thu, 2002-02-07 at 13:21, Jeff 'japhy' Pinyan wrote:
On Feb 7, Chas Owens said:
I have two hashes (%a and %b) that contain data for one person from two
different systems and I want to compare these hashes to see if the
systems are out of sync. The catch is I know that some of the fields
Whenever I've had to execute system or shell commands, I use the
backtick operator, the system command, or filehandle half-pipes (or
whatever they are called :). And I've always seen these recommended
whenever someone asks how to do that.
But recently, I saw the use of the Shell.pm module:
On Jan 16, Karthik Gurumurthy said:
($a,$b,$c) = (\1,\2,\3);
%hash = ($a=hello,$b=Perl);
You cannot use references as the keys to a hash, because hash keys must be
strings.
If you're REALLY desperate, you can use Tie::RefHash, but I don't think
you should be so desperate.
--
Jeff japhy
How do I get this to work? (too many quotes)
print pimg border=0 src=BD08906_.gif width=190 height=156\n;
Mike Smith
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Two different ways. Use the qq operator or escape the quotes.
print qq[pimg border=0 src=BD08906_.gif width=190 height=156\n];
print pimg border=\0\ src=\BD08906_.gif\ width=\190\
height=156\n;
Rob
-Original Message-
From: Mike Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February
On Feb 7, Mike Smith said:
How do I get this to work? (too many quotes)
print pimg border=0 src=BD08906_.gif width=190 height=156\n;
You can either escape the with a backslash...
print like \this\...;
but that gets to look REALLY ugly, REALLY fast. So use a different
quoting operator
On Thu, 2002-02-07 at 14:01, Mike Smith wrote:
How do I get this to work? (too many quotes)
print pimg border=0 src=BD08906_.gif width=190 height=156\n;
Mike Smith
try qq (see perldoc perlop)
example
print qq(pimg border=0 src=BD08906_.gif width=190
height=156\n);
/example
--
Today is
On Thu, 7 Feb 2002, Mike Smith wrote:
How do I get this to work? (too many quotes)
print pimg border=0 src=BD08906_.gif width=190 height=156\n;
print qq(pimg border=0 src=BD08906_.gif width=190 height=156\n);
qq() is the generic form of . You can also use qq{}, qq##, etc.
See the perlop
Use single quote marks inside your print statement. for instance
print pimg border='0' src='BD08906_.gif' width='190' height=156\n;
Better yet, use CGI instead.
HTH
-Original Message-
From: Mike Smith
To: [EMAIL PROTECTED]
Sent: 2/7/2002 1:01 PM
Subject: multiple quotes
How do I
%ignore = map { $_ = 1 } @ignore;
@diff = map { $a{$_} ne $b{$_} }
grep { !$ignore{$_} } keys %a;
@diff will end up with a list of key/value pairs of %a that are
different from %b, excluding those of %ignore.
note: this is untested.
Chris
On 7 Feb 2002, Chas Owens wrote:
I have
What is the URL for the perlop page?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Thu, 7 Feb 2002, Mike Smith wrote:
What is the URL for the perlop page?
At the command line (Unix or Windows) type 'perldoc perlop'. It's bundled
with your Perl installation.
-- Brett
http://www.chapelperilous.net/
On Thu, 2002-02-07 at 14:23, Mike Smith wrote:
What is the URL for the perlop page?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
perlop is a section of the perl manual.
try
man perlop
or
perldoc perlop
or if you must have a web page
After hours of pondering and sitting in wonder of simple it is, I have come
up with something. I do believe that this:
for my $i (0..$#keys) {
Quite possibly should be
foreach ( @keys ) {
Otherwise, why would you have
my @keys = (0, 1, 2, 3);
Instead of just $keys = 3 and
From: Christopher Solomon [EMAIL PROTECTED]
Whenever I've had to execute system or shell commands, I use the
backtick operator, the system command, or filehandle half-pipes (or
whatever they are called :). And I've always seen these recommended
whenever someone asks how to
On Thu, 7 Feb 2002, Jenda Krynicky wrote:
I guess there are two reasons.
1) Noone knows about it.
2) With the current version it's not possible to specify a path to the
program to run.
But IMHO if enhanced a bit, this could be the easies way to run an
external command.
Jenda --
I
Apologies for the loosely interpreted perl issue below.
I have rsh on my system and nothing else is available that I know of. I
need to send a local file to a remote system and APPEND the local file to
the remote file. All I can find in the man pages however is how to do just
the reverse.
you need to escape your inner quotes with a backslash like so.
print pimg border=\0\ src=\BD08906_.gif\ width=\190\
height=156\n;
Pat
- Original Message -
From: Mike Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 2:01 PM
Subject: multiple quotes
How
Hello all. Might one be able to tell me how to change the default output
channel so that instead of:
print FILE, text;
I might use
print text;
? Thank you.
--Jess
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The gethostbyname() function returns 5 variables, the last on addrs is an
array. How do I specify the function to only return that array rather than
the 4 strings and 1 array?
It's a menage a trois you and me and Heineken...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Whoops! I know that comma is not supposed to be in the first code snippet.
Sorry!
-Original Message-
Hello all. Might one be able to tell me how to change the default output
channel so that instead of:
print FILE, text;
I might use
print text;
? Thank you.
--Jess
--
To
On Thu, 7 Feb 2002, Jesse Ahrens wrote:
The gethostbyname() function returns 5 variables, the last on addrs is an
array. How do I specify the function to only return that array rather than
the 4 strings and 1 array?
gethostbyname() returns a list. You can coerce that list to become an
array
So, Jenda, what's the eta on the enhancement? :)
Dean Theophilou
P.S. Don't forget to update the docs too (preferably in Word or html format).
:
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 12:13 PM
To: Jenda Krynicky
Cc:
Hello all. I need to read through a large (150 MB) text file line by
line. Does anyone know how to do this without my process swelling to
300 megs?
I have not been following the list, so sorry if this question has
recently come up. I did not find it answered in the archives.
Thanks,
Brian
1 - 100 of 132 matches
Mail list logo