syntax error near unexpected token `;'

2012-02-06 Thread lina
#/usr/bin/perl until ($name eq ); do { print Enter another name, or Enter to stop:\n ; $name = STDIN; chomp ($name); push @namelist,$name; } print @namelist $ ./generate_namelist.pl ./generate_namelist.pl: line 6: syntax error near unexpected token

Re: syntax error near unexpected token `;'

2012-02-06 Thread Parag Kalra
On Mon, Feb 6, 2012 at 8:35 PM, lina lina.lastn...@gmail.com wrote: until ($name eq ); do { print Enter another name, or Enter to stop:\n ; $name = STDIN; chomp ($name); push @namelist,$name; } print @namelist This should work. Also start using strict and

Re: syntax error near unexpected token `;'

2012-02-06 Thread lina
On Tue, Feb 7, 2012 at 12:49 PM, Parag Kalra paragka...@gmail.com wrote: On Mon, Feb 6, 2012 at 8:35 PM, lina lina.lastn...@gmail.com wrote: until ($name eq ); do {        print Enter another name, or Enter to stop:\n ;        $name = STDIN;        chomp ($name);        push

Re: Syntax error on use Cwd qw(abs_path);

2011-05-31 Thread Jim Gibson
At 11:10 AM -0700 5/26/11, Derek wrote: Hello, I am getting the following error: bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near unexpected token `(' bash: /var/www/html/bugzilla/email_in.pl: line 2: `use Cwd qw(abs_path);' The contents of this file are: #!/usr/bin/perl

Syntax error on use Cwd qw(abs_path);

2011-05-28 Thread Derek
Hello, I am getting the following error: bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near unexpected token `(' bash: /var/www/html/bugzilla/email_in.pl: line 2: `use Cwd qw(abs_path);' The contents of this file are: #!/usr/bin/perl use Cwd qw(abs_path); Thats all. I know

Re: Syntax error on use Cwd qw(abs_path);

2011-05-28 Thread Uri Guttman
D == Derek derek...@gmail.com writes: D Hello, I am getting the following error: D bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near D unexpected token `(' big clue. what is the first word of that line? it is bash! perl is not seeing your script for some reason. so

Re: Syntax error on use Cwd qw(abs_path);

2011-05-28 Thread Bob goolsby
, Uri Guttman u...@stemsystems.com wrote: D == Derek derek...@gmail.com writes: D Hello, I am getting the following error: D bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near D unexpected token `(' big clue. what is the first word of that line? it is bash! perl

Re: Trap syntax error inside eval?

2010-10-01 Thread Dr.Ruud
On 2010-10-01 04:37, Jon Hermansen wrote: sub is_valid_xml { my ($content) = @_; eval { my $xs = XML::Simple-new(); my $ref = $xs-parse_string($content); }; return 1 unless ($@); } Don't test the truth of $@, but use the return value of the eval.

Re: Trap syntax error inside eval?

2010-10-01 Thread C.DeRykus
1;} OR return 1 if (not $@); the syntax error does not get printed out. I assumed that these statements were logically equal, so, what gives? I'm not sure. As Ruud mentioned, the return value of the eval -- rather than $@ -- is the key. If, for instance, you still are using a __DIE__

Trap syntax error inside eval?

2010-09-30 Thread Jon Hermansen
Hey all, I have this block of code: sub is_valid_xml { my ($content) = @_; eval { my $xs = XML::Simple-new(); my $ref = $xs-parse_string($content); }; return 1 unless ($@); } and when I pass in 'blahblahblah' as an argument, I get: syntax error at line

Re: Trap syntax error inside eval?

2010-09-30 Thread C.DeRykus
: $@; and when I pass in 'blahblahblah' as an argument, I get: syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/XML/Parser.pm line 187 I would like to trap this syntax error, but don't know how. I've tried each of these statements individually: local $SIG{'__DIE__'}; local $SIG

Re: Trap syntax error inside eval?

2010-09-30 Thread Jon Hermansen
the sub in scalar context and check for an error: is_valid_xml( blah) or die invalid: $@; and when I pass in 'blahblahblah' as an argument, I get: syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/XML/Parser.pm line 187 I would like to trap this syntax error, but don't

Re: Syntax error?

2007-08-23 Thread Randal L. Schwartz
[EMAIL PROTECTED] == [EMAIL PROTECTED] com [EMAIL PROTECTED] writes: [EMAIL PROTECTED] Those three things look like sets (unordered) to me not lists [EMAIL PROTECTED] (ordered). The natural datatype in Perl to represent a set of strings [EMAIL PROTECTED] is a hash with keys but no values.

Re: Syntax error?

2007-08-23 Thread [EMAIL PROTECTED]
On Aug 23, 4:36 pm, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: [EMAIL PROTECTED] == [EMAIL PROTECTED] com [EMAIL PROTECTED] writes: [EMAIL PROTECTED] Those three things look like sets (unordered) to me not lists [EMAIL PROTECTED] (ordered). The natural datatype in Perl to represent a

Re: Syntax error?

2007-08-22 Thread [EMAIL PROTECTED]
On Aug 22, 5:44 am, [EMAIL PROTECTED] (Chris) wrote: my @gilligan = qw(red_shirt hat lucky_socks water_bottle); my @skipper = qw(blue_shirt hat jacket preserver sunscreen); my @professor = qw(sunscreen water_bottle slide_rule batteries radio); my %all = ( Gilligan = [EMAIL

Re: Syntax error?

2007-08-22 Thread [EMAIL PROTECTED]
On Aug 22, 5:44 am, [EMAIL PROTECTED] (Chris) wrote: I am working a script that is a solution to a problem in Intermediate Perl. Here is the script: #!/usr/bin/perl -w use strict; sub check_items_for_all { my $all_ref = @_; my @who = keys %$all_ref; my @required

Re: Syntax error?

2007-08-22 Thread Mr. Shawn H. Corey
], ); check_items_for_all(\%all); When I run the script, I get the following error message: syntax error at required_items.pl line 13, near $all_ref{ syntax error at required_items.pl line 18, near } I'm not sure what is causing this. Eventually, I want the script to access each crew member's belongings

Re: Syntax error?

2007-08-22 Thread Paul Lalli
], ); check_items_for_all(\%all); When I run the script, I get the following error message: syntax error at required_items.pl line 13, near $all_ref{ syntax error at required_items.pl line 18, near } 99% sure those syntax errors are a result of your failed dereferencing of $all_ref. You should probably

Re: Syntax error?

2007-08-22 Thread Paul Lalli
On Aug 22, 12:50 am, [EMAIL PROTECTED] (Yitzle) wrote: http://perldoc.perl.org/functions/grep.html Good advice. Irrelevant to the problem at hand, but good advice nonetheless. Without testing the code or anything, could it be that: unless (grep $item eq $_, %$all_ref{$crew}) { should be:

Re: Syntax error?

2007-08-22 Thread Paul Lalli
On Aug 22, 1:18 am, [EMAIL PROTECTED] (Alexandru Maximciuc) wrote: Wednesday, August 22, 2007, 7:44:02 AM, you wrote: unless (grep $item eq $_, %$all_ref{$crew}) { this does the job well (I think :) ) unless (grep $item eq $_, $all_ref-{$crew}) { No.

Re: Syntax error?

2007-08-22 Thread [EMAIL PROTECTED]
On Aug 22, 6:18 am, [EMAIL PROTECTED] (Alexandru Maximciuc) wrote: Hello Chris, Wednesday, August 22, 2007, 7:44:02 AM, you wrote: I am working a script that is a solution to a problem in Intermediate Perl. Here is the script: #!/usr/bin/perl -w use strict; sub check_items_for_all {

Re[2]: Syntax error?

2007-08-22 Thread Alexandru Maximciuc
Hello Paul, Wednesday, August 22, 2007, 3:21:06 PM, you wrote: On Aug 22, 1:18 am, [EMAIL PROTECTED] (Alexandru Maximciuc) wrote: Wednesday, August 22, 2007, 7:44:02 AM, you wrote: unless (grep $item eq $_, %$all_ref{$crew}) { this does the job well (I think )

Syntax error?

2007-08-21 Thread Chris
@professor = qw(sunscreen water_bottle slide_rule batteries radio); my %all = ( Gilligan = [EMAIL PROTECTED], Skipper = [EMAIL PROTECTED], Professor = [EMAIL PROTECTED], ); check_items_for_all(\%all); When I run the script, I get the following error message: syntax error

Re: Syntax error?

2007-08-21 Thread yitzle
); When I run the script, I get the following error message: syntax error at required_items.pl line 13, near $all_ref{ syntax error at required_items.pl line 18, near } I'm not sure what is causing this. Eventually, I want the script to access each crew member's belongings, figure out which

Re: Syntax error?

2007-08-21 Thread Alexandru Maximciuc
water_bottle slide_rule batteries radio); my %all = ( Gilligan = [EMAIL PROTECTED], Skipper = [EMAIL PROTECTED], Professor = [EMAIL PROTECTED], ); check_items_for_all(\%all); When I run the script, I get the following error message: syntax error

RE: syntax error of some sort?

2007-07-05 Thread Joseph L. Casale
; beginners@perl.org Subject: RE: syntax error of some sort? @list = (Exchange,Filter,DNS,Domain); sub stop_it { $vm = $_[0]; print $vm\n; } stop_it(@list) A semi-colon is missing in the list assignment. if you want to get the first value of the list then you have to use $_[0

syntax error of some sort?

2007-07-04 Thread Joseph L. Casale
I have the following code (it's a snippet so it may seem silly, but altogether it would make sense as I am forcing one array into it for a test): #!/usr/bin/perl -w @DNS = (/vmfs/volumes/467f06a5-7d59c067-35cb-0007e9153886/Web DNS (Win2003 Std x32)/Web DNS (Win2003 Std

Re: syntax error of some sort?

2007-07-04 Thread Chas Owens
On 7/4/07, Joseph L. Casale [EMAIL PROTECTED] wrote: snip if ($state == 'on') { 'vmware-cmd $_[0] stop soft'; my $tools = `/usr/bin/vmware-cmd \$_[0]\ gettoolslastactive -q`;

Re: syntax error of some sort?

2007-07-04 Thread Chas Owens
On 7/4/07, Chas Owens [EMAIL PROTECTED] wrote: snip snip The second I am sure is the darn () in the file names I am feeding into the function. Can someone shed some light :) I need to call the first indices of many arrays that get passed into this function, so I was thinking $_[0] was what I

RE: syntax error of some sort?

2007-07-04 Thread Joseph L. Casale
? So the `/usr/bin/vmware-cmd \$_[0]\ gettoolslastactive -q`; is correct where the var gets inserted? Thanks! jlc -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 04, 2007 8:15 PM To: Joseph L. Casale Cc: beginners@perl.org Subject: Re: syntax error

RE: syntax error of some sort?

2007-07-04 Thread Joseph L. Casale
Heh, I am running out of hair:P I get two errors to start, one is the warning that is better write: my ($vm) = $_[0]; instead of my ($vm) = @_[0]; And the other is about the use of the global @_ (huh) with my? I have this now: #!/usr/bin/perl -w @Exchange =

RE: syntax error of some sort?

2007-07-04 Thread Joseph L. Casale
Heh, Clearly I need to sleep! This doesn't even work either? #!/usr/bin/perl -w @list = (Exchange,Filter,DNS,Domain) sub stop_it { $vm = $_[0]; print $vm\n; } stop_it(@list) What is wrong here? jlc -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: syntax error of some sort?

2007-07-04 Thread Chas Owens
On 7/4/07, Joseph L. Casale [EMAIL PROTECTED] wrote: Heh, Clearly I need to sleep! This doesn't even work either? #!/usr/bin/perl -w @list = (Exchange,Filter,DNS,Domain) snip You are missing your quotes. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: syntax error of some sort?

2007-07-04 Thread Chas Owens
On 7/4/07, Joseph L. Casale [EMAIL PROTECTED] wrote: Heh, I am running out of hair:P I get two errors to start, one is the warning that is better write: my ($vm) = $_[0]; instead of my ($vm) = @_[0]; The proper way to say this is my ($vm) = @_; And looking at your data I would suggest my

RE: syntax error of some sort?

2007-07-04 Thread Prabu Ayyappan
@list = (Exchange,Filter,DNS,Domain); sub stop_it { $vm = $_[0]; print $vm\n; } stop_it(@list) A semi-colon is missing in the list assignment. if you want to get the first value of the list then you have to use $_[0] Second Value means $_[1] and so on...

Syntax Error

2006-09-09 Thread AndrewMcHorney
Hello I do not have my perl books with me and so I cannot diagnose the error I am getting with several if statements. Could someone assist? Here is the code: #! /bin/perl # # Create the files to delete list file # # # Find all the files # print Extracting files in directory; @file_list =

Re: Syntax Error

2006-09-09 Thread Tom Phoenix
On 9/9/06, AndrewMcHorney [EMAIL PROTECTED] wrote: I do not have my perl books with me and so I cannot diagnose the error I am getting with several if statements. What line is the error? What's the error message? Can you find the message in perldiag? if (file_deleted[compare_index] ==

Re: Syntax Error

2006-09-09 Thread John W. Krahn
AndrewMcHorney wrote: Hello Hello, I do not have my perl books with me and so I cannot diagnose the error I am getting with several if statements. Could someone assist? Do you have the Perl documentation installed on your hard drive? perldoc perldiag Here is the code: #! /bin/perl

syntax error

2005-12-03 Thread Thom Hehl
OK, I'm getting an error running my perl script and can't seem to see the problem. Here's the error: syntax error at C:\src\rex\rex_config.cgi line 544, near $sysnamelist[ syntax error at C:\src\rex\rex_config.cgi line 546, near } elsif Execution of C:\src\rex\rex_config.cgi aborted due

RE: syntax error

2005-12-03 Thread Charles K. Clarkson
Thom Hehl mailto:[EMAIL PROTECTED] wrote: : $SysIndex = 0; : : if ($PageNo==1) : { : my @sysnamelist=split(/$SEPARATOR/,$config{$SYSNAME}); : my $sysnamelist[$SysIndex]=$input{$SYSNAME}; Remove the my. $sysnamelist[$SysIndex] = $input{$SYSNAME}; :

Re: syntax error

2005-12-03 Thread ecocode
* [EMAIL PROTECTED] (Thom Hehl) wrote: | | my $sysnamelist[$SysIndex]=$input{$SYSNAME}; why do you need 'my' here ? -- Eco http://www.ecocode.net * Life is wonderful with Emacs and Perl * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Syntax error using bitwise

2005-11-15 Thread Sastry
Hi I have a script that gives error Syntax error at /u/isldev3/exp/oper.pl line 7, near ) print Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors. $x =3D 3; $y =3D 4; $z =3D 3; if (($x $y $z) 20) print \n Lies below the range; a) Is it supposed to give error? b

Re: Syntax error using bitwise

2005-11-15 Thread Beau E. Cox
Hi Sastry - At 2005-11-15, 00:25:37 you wrote: Hi I have a script that gives error Syntax error at /u/isldev3/exp/oper.pl line 7, near ) print Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors. $x =3D 3; $y =3D 4; $z =3D 3; if (($x $y $z) 20) print \n Lies below

Re: Syntax error using bitwise

2005-11-15 Thread Owen Cook
On Tue, 15 Nov 2005, Sastry wrote: I have a script that gives error Syntax error at /u/isldev3/exp/oper.pl line 7, near ) print Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors. $x =3D 3; $y =3D 4; $z =3D 3; if (($x $y $z) 20) print \n Lies below

Re: Syntax error using bitwise

2005-11-15 Thread John W. Krahn
Sastry wrote: Hi Hello, I have a script that gives error Syntax error at /u/isldev3/exp/oper.pl line 7, near ) print Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors. $x =3D 3; $y =3D 4; $z =3D 3; if (($x $y $z) 20) print \n Lies below the range

syntax Error ..........

2005-09-02 Thread mayank . ahuja
Hi Guys... Can u plz give me the write syntax for this foreach (@lookup_datatype){ my $plus; ($plus) = /([0-9]+)/; print $plus\n; } in this form.. foreach my $i (0 ..$#lookup_datatype){ my $plus; ($plus) = /([0-9]+)/ , $lookup_datatype[$i]; print $plus\n; }

Re: syntax Error ..........

2005-09-02 Thread Manav Mathur
- Original Message - From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Saturday, September 03, 2005 12:20 AM Subject: syntax Error .. Hi Guys... Can u plz give me the write syntax for this foreach (@lookup_datatype){ my $plus; ($plus) = /([0-9]+)/; print

Re: syntax Error ..........

2005-09-02 Thread Jeff 'japhy' Pinyan
On Sep 3, [EMAIL PROTECTED] said: foreach my $i (0 ..$#lookup_datatype){ my $plus; ($plus) = /([0-9]+)/ , $lookup_datatype[$i]; I think you want ($plus) = $lookup_datatype[$i] =~ /([0-9]+)/; -- Jeff japhy Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 %

Re: syntax Error ..........

2005-09-02 Thread mayank . ahuja
Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Jeff 'japhy' Pinyan [EMAIL PROTECTED] 09/03/2005 12:31 AM To [EMAIL PROTECTED] cc beginners@perl.org Subject Re: syntax Error .. On Sep 3, [EMAIL PROTECTED] said: foreach

Re: syntax Error ..........

2005-09-02 Thread Jeff 'japhy' Pinyan
On Sep 3, [EMAIL PROTECTED] said: Actually the problem is like this @lookup_datatype = qw ( string(30) string (40) string(10) Real string(10) Integer string(34) ); when my loop encounters this real or Integer or any other element in the array it gives a error problem I want to skip through

Re: Syntax error with while

2003-11-11 Thread herve.suvigny
' coming back from the Perl Compiler, the problem is a syntax error in the perl code itself. Yes I think so this is why I put the challenge in about print some stuff here, while(...){}, some other stuff; since I can not find a way to do that. I tried a variety of ways to think

Re: Syntax error with while

2003-11-10 Thread drieux
problem is messy enough as it is, since one is trying to marry input that comes, as in your case from a database, into output that is wrapped in HTML. So if the problem is a 'perl error' - the sort of 'unable to do foo at line integer' coming back from the Perl Compiler, the problem is a syntax error

Re: Syntax error with while

2003-11-10 Thread drieux
On Monday, Nov 10, 2003, at 14:54 US/Pacific, herve.suvigny wrote: [..] To morrow I am going to do this way and I have another idea , While in first first stuff second stuff [..] a strategy that I use is to 'build up' the page in the form $info .=

Re: Syntax error with while

2003-11-10 Thread Lanzaroto
is trying to marry input that comes, as in your case from a database, into output that is wrapped in HTML. So if the problem is a 'perl error' - the sort of 'unable to do foo at line integer' coming back from the Perl Compiler, the problem is a syntax error in the perl code itself. this is why I

Syntax error with while

2003-11-09 Thread lanzaroto
Hi, I am trying to print on html page the result of select I have this error; -- Syntax error at requete line 90, near while requete had compilation errors (#1) (F) The final summary message when a perl -c fails. [Sun Nov 9 16:55:15 2003

Re: Syntax error with while

2003-11-09 Thread drieux
On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH-fetchrow_array){ $REQ-Tr, $REQ-td('$id'), $REQ-td('$nom'),

Re: Syntax error with while

2003-11-09 Thread lanzaroto
Le dim 09/11/2003 à 17:44, drieux a écrit : Hi, On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH-fetchrow_array){ $REQ-Tr,

Re: Syntax error with while

2003-11-09 Thread Herve Suvigny
Le dim 09/11/2003 à 17:44, drieux a écrit : Hi, On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH-fetchrow_array){ $REQ-Tr,

Re: Syntax error with while

2003-11-09 Thread drieux
On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: Le dim 09/11/2003 à 17:44, drieux a écrit : On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH-fetchrow_array){ $REQ-Tr,

Re: Syntax error with while

2003-11-09 Thread lanzaroto
Le dim 09/11/2003 à 20:02, drieux a écrit : On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: Le dim 09/11/2003 à 17:44, drieux a écrit : On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} =

Re: Syntax error with while

2003-11-09 Thread A L
lanzaroto [EMAIL PROTECTED] wrote: Le dim 09/11/2003 à 20:02, drieux a écrit : On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: Le dim 09/11/2003 à 17:44, drieux a écrit : On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} =

help with syntax error

2003-10-29 Thread Rick Triplett
Can someone please help me find the syntax error in the following practice exercise. The perl compiler says: syntax error at line 7 near ) { but I cannot see it! #!/usr/bin/perl -w print Enter the radius: \n; chomp ($radius = STDIN); $area = $radius*$radius*3.14 if ( $radius = 0

Re: help with syntax error

2003-10-29 Thread drieux
On Wednesday, Oct 29, 2003, at 08:28 US/Pacific, Rick Triplett wrote: #!/usr/bin/perl -w print Enter the radius: \n; chomp ($radius = STDIN); $area = $radius*$radius*3.14 --^ normally that would need to have a ; to close it out. if ( $radius = 0 ) { print

RE: sendmail syntax error

2003-06-02 Thread Geer, David van der
[EMAIL PROTECTED] ./summer.pl Bareword found where operator expected at ./summer.pl line 78, near print SENDMAIL TO (Might be a runaway multi-line string starting on line 77) (Do you need to predeclare print?) syntax error at ./summer.pl line 78, near print SENDMAIL TO Backslash

sendmail syntax error

2003-06-01 Thread Leaw, Chern Jian
not ready and sends an e-mail notification to the sysadmin detailing the process id and service name that matched the string not ready. However, the script produce the following syntax error below, when it comes to the SENDMAIL part in the sub-routine sendMail: [EMAIL PROTECTED] ./summer.pl Bareword

hr; ##syntax error

2002-10-16 Thread ROBERT_MCCAMMON
Hello all, I am getting a syntax error when trying to run the following with CGI (:standard). It is at line 24 which is marked below. This is coming directly from the CGI.PM documentation, worse yet I am running PERL 5.6.1. Am I missing something obvious

Re: hr; ##syntax error

2002-10-16 Thread William McKee
Robert, You're missing a closing paren on the popup_menu function. William -- Lead Developer Knowmad Services Inc. || Internet Applications Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Robert Larmon
Okay, so I'm a total Perl newbie. I have an old script (that I unfortunately inherited) that I'd like to convert to Perl 5. I copied it over, and I get a syntax error. I went to perl.org, perl.com, etc., but can't find anything that describes the differences between 4 and 5. I feel like

Re: newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Felix Geerinckx
on Thu, 01 Aug 2002 22:10:41 GMT, [EMAIL PROTECTED] (Robert Larmon) wrote: Okay, so I'm a total Perl newbie. I have an old script (that I unfortunately inherited) that I'd like to convert to Perl 5. I copied it over, and I get a syntax error. I went to perl.org, perl.com, etc

RE: newbie syntax error - Perl 4 - Perl 5.6.1

2002-08-02 Thread Timothy Johnson
Ummm...Are you sure that isn't C? -Original Message- From: Robert Larmon To: [EMAIL PROTECTED] Sent: 8/1/02 3:10 PM Subject: newbie syntax error - Perl 4 - Perl 5.6.1 Okay, so I'm a total Perl newbie. I have an old script (that I unfortunately inherited) that I'd like to convert

RE: Syntax error in Win32:CopyFile()

2002-07-15 Thread Rupert Heesom
] Subject: Re: Syntax error in Win32:CopyFile() on Thu, 11 Jul 2002 19:47:35 GMT, Rupert Heesom wrote: I'm stuck again! C:\Perl\TIFFPDFperl -d tiffpdf.pl usage: Win32::CopyFile($from, $to, $overwrite) at tiffpdf.pl line 39, CFG line 6. The code line is: Win32::CopyFile $CurrTIFFDir.\\.$_..tif

Syntax error in Win32:CopyFile()

2002-07-11 Thread Rupert Heesom
Hi all: I'm stuck again! I'm trying to copy a file using Win32::CopyFile, and the ActiveState debugger actually lets me run the script without complaining Until I get to the said line! The stdout error I get is: C:\Perl\TIFFPDFperl -d tiffpdf.pl usage: Win32::CopyFile($from, $to,

invisible syntax error

2002-06-11 Thread Adrian Farrell
open file: $!; open(OUTPUT, newletter.txt); while (INPUT){ if(S/\//){ print OUTFILE; } } C:\perl clean.pl syntax error at clean.pl line 7, near \ syntax error at clean.pl line 10, near } Execution of clean.pl aborted due to compilation errors

invisible syntax error

2002-06-11 Thread Adrian Farrell
oops, ignore last mail, having one of those days, there was an accidental capitalization :} _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail:

Re: invisible syntax error

2002-06-11 Thread Tor Hildrum
hi, I simply wished to strip out all the from a text file. below is the script and the error that is reported. I cannot see anything wrong, it's such a simple piece of code! can any one help, are my eyes deceiving me? [localhost:~] tor% perl -e 'while() {s/\//g; print;}' 123 123 12345678

Re: invisible syntax error

2002-06-11 Thread Sudarsan Raghavan
while (INPUT){ if(S/\//){ '' does not have to be escaped (this is not an error, it is the capitalized s as you mentioned) You can just write this as s///. $_ = '; s///g; print $_\n; This prints -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: invisible syntax error

2002-06-11 Thread Connie Chan
- Original Message - From: Adrian Farrell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 5:25 PM Subject: invisible syntax error hi, I simply wished to strip out all the from a text file. below is the script and the error that is reported. I cannot see

Re: Insertion of table causes syntax error-message

2002-06-04 Thread John Brooking
--- Richard Krause [EMAIL PROTECTED] wrote: I found out what the problem is. If you write $q-table({-border=undef}, #caption('When Should You Eat Your Vegetables?'), ... snip ... instead of print table({-border=undef}, caption('When Should You Eat Your

Re: Insertion of table causes syntax error-message

2002-06-03 Thread Richard Krause
I found out what the problem is. If you write $q-table({-border=undef}, #caption('When Should You Eat Your Vegetables?'), $q-Tr({-align=CENTER,-valign=TOP}, [ $q-th(['Vegetable', 'Breakfast','Lunch','Dinner']), $q-td(['Tomatoes' , 'no',

Re: Insertion of table causes syntax error-message

2002-05-31 Thread Todd Wade
Richard Krause [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all (...) #td(['Broccoli' , 'no', 'no', 'yes']), #td(['Onions' , 'yes','yes', 'yes']) #] #) missing a comma ^

Re: Insertion of table causes syntax error-message

2002-05-30 Thread Dave K
s:[EMAIL PROTECTED]... Hi all I'd like to generate a html page in a subroutine of my guestbook but I get a syntax error pointing to the line where $q-end_html; is written as soon as I include a table. If executed without the table, the script runs well. (the table is copied from perldoc.cgi

Re: Syntax error

2002-05-16 Thread Jaishree Rangaraj
Hello All: Can anybody please tell me if this syntax is corect. I am getting syntax error in this block. foreach $sorted_field (sorted_fields) { if ($Config{'print_blank_fields'} || $Form{$sorted_field}) { $_=$sorted_field; $field=m

RE: Syntax error

2002-05-16 Thread Bob Showalter
-Original Message- From: Jaishree Rangaraj [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:53 AM To: [EMAIL PROTECTED] Subject: Re: Syntax error Hello All: Can anybody please tell me if this syntax is corect. I am getting syntax error in this block. foreach

Re: what does this syntax error mean?

2002-03-28 Thread Wytch
Jeff 'Japhy' Pinyan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mar 27, Wytch said: Transliteration replacement not terminated at dot.pl line 18. What is a Transliteration replacement? First, you've shown us NO code, so we can't help correct your

what does this syntax error mean?

2002-03-27 Thread Wytch
Transliteration replacement not terminated at dot.pl line 18. ??? What is a Transliteration replacement? Anyone??? =O) Wytch -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: what does this syntax error mean?

2002-03-27 Thread Timothy Johnson
do you have a =~ tr/// in there somewhere? -Original Message- From: Wytch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 1:13 PM To: [EMAIL PROTECTED] Subject: what does this syntax error mean? Transliteration replacement not terminated at dot.pl line 18. ??? What

Re: what does this syntax error mean?

2002-03-27 Thread Jeff 'japhy' Pinyan
On Mar 27, Wytch said: Transliteration replacement not terminated at dot.pl line 18. What is a Transliteration replacement? First, you've shown us NO code, so we can't help correct your code. Second, you should check the error documentation: % perldoc perldiag and look for

Re: what does this syntax error mean?

2002-03-27 Thread Jeff 'japhy' Pinyan
On Mar 27, Jeff 'japhy' Pinyan said: So it sounds like you've used the tr/// operator and failed to close it properly. Or the y/// operator. -- Jeff japhy Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/

Perl-case statement, and module syntax error

2001-07-10 Thread Sparkle Williams
I'm having two problems 1) Is there an equivalent of the case function in Perl? 2)I'm also getting a syntax error for the following part of my program that I'm attempting to run on my Unix system. I get a syntax error message for 'new($url, ', 'login($username, 'cwd($ftp_home), ', and 'get

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Jason Purdy
PROTECTED] Sent: Tuesday, July 10, 2001 9:43 AM Subject: Perl-case statement, and module syntax error I'm having two problems 1) Is there an equivalent of the case function in Perl? 2)I'm also getting a syntax error for the following part of my program that I'm attempting to run on my Unix system. I

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 09:43:26AM -0400, Sparkle Williams wrote: I'm having two problems 1) Is there an equivalent of the case function in Perl? perldoc -q switch, or http://www.perldoc.com/perl5.6/pod/perlfaq7.html#How%20do%20I%20create%20a%20switch%20or%20case%20statement%3f $ftp =

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Paul
--- Michael Fowler [EMAIL PROTECTED] wrote: On Tue, Jul 10, 2001 at 09:43:26AM -0400, Sparkle Williams wrote: I'm having two problems 1) Is there an equivalent of the case function in Perl? perldoc -q switch, or Check out Damian Conway's Switch module.

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Chas Owens
, as documented. Jason - Original Message - From: Sparkle Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 9:43 AM Subject: Perl-case statement, and module syntax error I'm having two problems 1) Is there an equivalent of the case function in Perl