Leon wrote:
>
> [snip kuddos]
>
> Co-incidentally, before I received the final solution, last night as I was
> in the bed pondering about the problem, suddenly I got the solution as I
> toyed upon what Andrea Holstein & Charles K. Clarkson constant reminder (in
> the previous msg; long time ago
Once again, I wish to Thank => John W. Krahn, Paul Johnson & Charles K.
Clarkson for the latest solution which is what I want.
I also wish to Thank the following :-
Jos , for telling me about 'return' function,
Rex Arul, for telling me about returning the last value of a subroutine,
Andrea Hols
On Saturday 17 November 2001 13:43, Jeff 'japhy' Pinyan wrote:
>
> Ok. First, you're missing a space between 'sub' and 'replace'.
COMMENT: Didn't catch that.
Second,
> you're using 'use' in a very wrong way.
COMMENT: Didn't catch that. Will look that up.
Third, you never defined $ref.
On Nov 17, Sherri said:
>#!/usr/bin/perl -w
>#This program replaces cm398p with cm498p
>use strict;
>@Classes = ("cm140", "cm325", "cm398p");
>subreplace
>{
>use $ref -> [X] = "cm498p"
>}
>replace (/@Classes);
>print @Classes;
Ok. First, you're missing a space between 'sub' and 'replace'. Seco
On Sat, Nov 17, 2001 at 12:40:18PM -0800, Richard S. Crawford wrote:
> You forgot the semicolon:
>
> sub replace
> {
> use $ref -> [X] = "cm498p";
> }
Actually, the semicolon is not required on the last statement in a
block.
> At 12:01 PM 11/17/2001, Sherri wrote:
> >#!/usr/bin/perl -w
On Nov 17, Sherri said:
>Can anyone please tell me what this error means:
>
>syntax error `(' unexpected
Sounds like you're running your Perl script through the shell, not perl.
Try running your code as:
perl myprog.pl
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com
Can anyone please tell me what this error means:
syntax error `(' unexpected
Is it that I am not supposed to be using "(" ever in my programs, because almost
everytime I have a program that needs something to be enclosed in "( )" it has a
syntax error with the "(".
Any assistance would be gla
On Saturday 17 November 2001 12:01, Sherri wrote:
> > I am having problems debugging this program. It keeps saying there's an
> error in line 5 near '('
>
> Here's the code:
>
> #!/usr/bin/perl -w
> #This program replaces cm398p with cm498p
> use strict;
> @Classes = ("cm140", "cm325", "cm398p");
You forgot the semicolon:
sub replace
{
use $ref -> [X] = "cm498p";
}
At 12:01 PM 11/17/2001, Sherri wrote:
>#!/usr/bin/perl -w
>#This program replaces cm398p with cm498p
>use strict;
>@Classes = ("cm140", "cm325", "cm398p");
>subreplace
>{
>use $ref -> [X] = "cm498p"
>}
>replace (/@Cl
I am having problems debugging this program. It keeps saying there's an error in line
5 near '('
Here's the code:
#!/usr/bin/perl -w
#This program replaces cm398p with cm498p
use strict;
@Classes = ("cm140", "cm325", "cm398p");
subreplace
{
use $ref -> [X] = "cm498p"
}
replace (/@Classes);
prin
On Nov 17, Andrea Holstein said:
>Ken Clark wrote:
>>
>> I want to capture the title of the current song I have running on my box
>> through mpg123 and redirect it to a file. In this process, I don't want
>> the /long/path/to/song but just the song.mp3. Is it possible to capture
>> the song titl
Daniel Murphy schrieb:
>
> OK, I've been lurking long enough. Got what I think is a very simple
> question which may be more of an NT command shell question as it is a Perl
> question.
>
> I have a very simple script (below) which reads data from STDIN and converts
> the supposed EBCDIC hex data
Ken Clark wrote:
>
> I want to capture the title of the current song I have running on my box
> through mpg123 and redirect it to a file. In this process, I don't want
> the /long/path/to/song but just the song.mp3. Is it possible to capture
> the song title this way?
>
Hi, another way is:
my (
>
> my $string1 = "ABCD";
> my $string2 = "AbCd";
> my $string3 = "AABcD";
>
> Get $string1, discard $string2 and $string2.
>
> ...
> but ABBC displays as valid!
>
> Wags ;)
What's the difference between "AABcD" and "ABBC" ?!
However, I wrote a little script with two different poss
Rietsch Thierry [[EMAIL PROTECTED]] quoth:
*>
*>Did anybody now what i must do?
*>System: OpenBSD 2.9
Read the INSTALL doc.
e.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To add to Bob's statement, just to provide more info...
I would get some ps output, maybe like this:
my @psfull = `ps -ef`;
Then I could mess around with @psfull all want:
if (@psfull =~ /(^\d+)\s+\d+dhcpd/) {
$pid = $1;
do some stuff to $pid...
Read the regular expression sec
Windows Does not care for the shebang line.
Personal Web Server / IIS 4.0 / IIS 5.0 / Standalone Perl Scripts in
Windows -- They all don't care what the shebang line is. They just ignore
it.
The only place that I know the shebang line does matter in Windows is that
if you use APACHE Server to se
the #!/file/to/interpreter
line is not specific to perl, but to unix. so look for
something else under windows.
/kk
On Sat, Nov 17, 2001 at 03:57:25AM -0800, Karthik wrote:
> My Problem:
>
> I run a web server(PWS) on a Windows 98 machine. My
> perl.exe(perl interpreter) is located in
> c:\ro
1) The shebang line of #!usr/local/bin/perl has nothing to do with your
woes.
2) If you had installed ActiveState Perl, it would have automatically
installed the PerlScript plugins and other ISAPI filters that you might need
to code your ASP Pages in Perl.
3) If you want to run your Perl Scripts
My Problem:
I run a web server(PWS) on a Windows 98 machine. My
perl.exe(perl interpreter) is located in
c:\root\perl\bin. My files(web
pages etc..) are located in c:\root. Since each perl
program needs the "
#!/usr/local/bin/perl " line at the start I dont know
what to put in that
line since the
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Chris And Madonna Stalnaker) wrote:
> $password eq ;
eq is a comparison operator not an assignment operator.
you meant
$password = ;
always start your scripts with either
#!/path/to/perl -w
use strict;
# ...
or under Perl 5.6.1
#!/
> I want to capture the title of the current song I have running on my box
> through mpg123 and redirect it to a file. In this process, I don't want
> the /long/path/to/song but just the song.mp3. Is it possible to capture
> the song title this way?
I haven't used it, but you might want to che
Leon wrote:
>
> First I would like to Thank ALL the Members for the help !
> Secondly I would like to Thank those that urge me to use "use strict" &
> "my".
>
> Unfortunately I think a lot of members have misunderstood my earlier-first
> question.
> My question is:- what must I do so that the ou
Chris And Madonna Stalnaker wrote:
>
> I have to start somewhere,
When you read from STDIN on a terminal or console the line ends with a
newline (\n) so you have to remove it.
> This works:
>
> print "Enter your name: ";
> $text = ;
chomp( $text = );
> print "\nHell
I want to use CGI.pm to parse form input and store all name/value-pairs in
a hash.
At present, the code I have reads like this:
my $in = new CGI;
my %in = &parse_form;
sub parse_form {
my @names = $in->param;
foreach my $name ( @names ) {
if (param($name)) {
$in{$name} = $in->
Hi @ all
During I want to install DBD::mysql with CPAN I become this error code:
--
CPAN.pm: Going to build J/JW/JWIED/DBD-mysql-2.1004.tar.gz
Can't exec "mysql_config": No such file or directory at Makefile.PL line
168.
On Sat, Nov 17, 2001 at 05:48:44PM +0800, Leon wrote:
> First I would like to Thank ALL the Members for the help !
> Secondly I would like to Thank those that urge me to use "use strict" &
> "my".
>
> Unfortunately I think a lot of members have misunderstood my earlier-first
> question.
> My ques
First I would like to Thank ALL the Members for the help !
Secondly I would like to Thank those that urge me to use "use strict" &
"my".
Unfortunately I think a lot of members have misunderstood my earlier-first
question.
My question is:- what must I do so that the output layout would look like
t
28 matches
Mail list logo