Gerben Wierda wrote:
I've got a XML file that contains the following snippet
Thanks Solli. :-)
On Thursday 30 November 2006 11:14, Junaid Shariff wrote:
> Hello again. Thanks for the prompt reply. Not sure if i explained my doubt
> clearly.
> Basically I run the ncpmount command, which requires the user to enter the
> remote server password. But that password has already been entered by the
Hello again. Thanks for the prompt reply. Not sure if i explained my doubt
clearly.
Basically I run the ncpmount command, which requires the user to enter the
remote server password. But that password has already been entered by the
user once before and is stored by me in a variable. Now when I ha
I am new to perl and have a doubt. I have a script that needs to run a
command. The command that is being run requires input from the user to
proceed. Instead of prompting the user how can I code the utility to not
prompt the user but take the input from a variable that has the value that
is to be
Hello and welcome!
On Thursday 30 November 2006 10:32, Junaid Shariff wrote:
> I am new to perl and have a doubt. I have a script that needs to run a
> command. The command that is being run requires input from the user to
> proceed. Instead of prompting the user how can I code the utility to not
On Fri, 25 Mar 2005 14:07:02 -0800, Kyle Lampe wrote:
>
> while ( $lineFile1 = && $lineFile2 = ) {
[...snip...]
> But it's complaining about my &&. How can I increment the contents of
> 2 files like this at once?
>
According to "perldoc perlop", the && operator has higher precedence
than th
Kyle Lampe wrote:
Hello!
Hi
I've got a quick perl question for you. I'm writing a script that
compares two xml files, ignoring one certain tag.
The problem I have is I want to get the output from two files simultaneously.
What I'm trying is:
while ( $lineFile1 = && $lineFile2 = ) {
try:
while (
Frank 'Olorin' Rizzi wrote:
>Hello everybody.
>
>I am just starting with Perl,
>so the following question will probably appear simple to most of you.
>
>I am trying to get a Perl program to provide me with a listing of the files
>stored on the machine (where the program runs).
>The environment is
--- Shawn <[EMAIL PROTECTED]> wrote:
> Geez, if your gonna flame a newcomer, at least answer the question while
> your at it.
This was a flame?
> > We just discussed this today. Please do NOT crosspost. This is better in
> the [EMAIL PROTECTED]
> > list. Further, having a useful subject line
t; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 4:22 PM
Subject: Re: beginner question
> We just discussed this today. Please do NOT crosspost. This is better in
the [EMAIL PROTECTED]
> list. Further, having a useful su
We just discussed this today. Please do NOT crosspost. This is better in the
[EMAIL PROTECTED]
list. Further, having a useful subject line helps. If I had a penny for every
unhelpful subject
line I've seen today... hold on a minute... I'd have $1.27 :)
(tip 'o the keyboard to Terry Pratchet
On May 22, Peter Cline said:
>> @parts = split ' ', "this and that";
>> { local $" = ") ("; print "(@parts)"; }
>> # (this) (and) (that)
>
>Will the ") (" assign any amount of space to the list separator?
>This is interesting. I haven't encountered this syntax before.
Using split ' ' is
Thanks for catching my errors. I was thinking too narrowly, using just the
one template provided. This can of course be dangerous, for things change.
At 05:30 PM 5/22/01 -0400, Jeff Pinyan wrote:
>You might want to use the special split ' ' syntax:
>
> @parts = split ' ', "this and that";
On May 22, Peter Cline said:
>Try this.
>my $text = "Browser/Version Platform";
>my ($keep,$discard) = split / /, $text;
>print "$keep\n";
>
>This splits on space and saves the part you want to the variable $keep and
>the rest to $discard.
Actually, it splits on EXACTLY one space. That can cau
> "Peter" == Peter Cline <[EMAIL PROTECTED]> writes:
Peter> Try this.
Peter> my $text = "Browser/Version Platform";
Peter> my ($keep,$discard) = split / /, $text;
Peter> print "$keep\n";
Peter> This splits on space and saves the part you want to the variable $keep
Peter> and the rest to $dis
Try this.
my $text = "Browser/Version Platform";
my ($keep,$discard) = split / /, $text;
print "$keep\n";
This splits on space and saves the part you want to the variable $keep and
the rest to $discard.
Also you could use a regular expression like such:
my $text = "Browser/Version Platform";
$
On May 22, Mark on GCI Server said:
>open(TESTER, "print "Enter a username: ";
>$input = ;
You need to chomp $input, since it has a newline at the end.
>$x = 0;
>$y = 0;
>$w = 0;
>$z = 1;
>if ( ne "") {
That reads a line (and it is lost forever).
>while($line = ) {
>c
The better point is to provide the list with a snippet of the code and the
individuals are then more than willing to assist. Otherwise necessary
information may be omitted and you go down the wrong path.
Wags ;)
-Original Message-
From: Mark on GCI Server [mailto:[EMAIL PROTECTED]]
Sent
On May 22, Mark on GCI Server said:
> I'm trying to populate an array from a file, I think I've got the array
>populated, however, I'm not sure. I then want to compare an input against
>the array to determine if its there, then look at the second component of
>each record. Any assistance would
At 11:09 21.05.2001 -0700, you wrote:
>if ($oldLot[1] == 0)
>{
> $arpCount = $arp{$lot}; ==> Part 1
>}
>else
>{
> $arpCount = "-"; ==> Part 2
>}
>
>printf "%3s %3d ", $arpCount, $count;
>
>My problem occurs in the "printf" at the "%3s". Here
>is the situation: When $oldLot[1] =
: if ($oldLot[1] == 0)
: {
: $arpCount = $arp{$lot}; ==> Part 1
: }
: else
: {
: $arpCount = "-"; ==> Part 2
: }
:
: printf "%3s %3d ", $arpCount, $count;
:
: My problem occurs in the "printf" at the "%3s". Here
: is the situation: When $oldLot[1] == 0, $arpCount is
: equal to
22 matches
Mail list logo