Date: Wed, 13 Feb 2002 01:40:47 -0500 From: Jim Conner <jconner@enterit.com> To: Odhiambo Washington <wash@wananchi.com> Cc: FBSD-Q <freebsd-questions@freebsd.org> Subject: Re: help with perl script Message-ID: <5.1.0.14.0.20020213013507.02cd7628@mail.enterit.com> In-Reply-To: <20020212170602.GA87738@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 20:06 02.12.2002 +0300, Odhiambo Washington wrote: >## >String found where operator expected at /usr/local/sbin/expire_mail line >117, near "$line_buffer = "" > (Might be a runaway multi-line "" string starting on line 105) > (Missing semicolon on previous line?) #Processed by $_expire_mail_rcsid"; Processed by expire_mail_$_rcsid"; <-- this should be prefixed with a $ >String found where operator expected at /usr/local/sbin/expire_mail line >143, near "local( $line ) = "" > (Might be a runaway multi-line "" string starting on line 117) > (Missing semicolon on previous line?) |syntax error at /usr/local/sbin/expire_mail line 143, near "local( $line ) = "" Well, I believe this will fix your problem... Change: if( ! ($line_buffer eq "") ) { to: if ( $line_buffer != "" ) { frankly, I prefer the easier: if ( ! $line_buffer ) { But only use that in the right situations. It seems like that would work in this situation. >Execution of /usr/local/sbin/expire_mail aborted due to compilation errors. >## > > > >-Wash > >S y s t e m s A d m i n. > >-- >Odhiambo Washington <wash@wananchi.com> "The box said 'Requires >Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' >Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." >GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) > >++ >"Why be a man when you can be a success?" > -- Bertold Brecht -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org - Jim Philosophy is for those who have nothing better to do than wonder why philosophy is for those who have nothing better to do than... mQGiBDxAonQRBACx+sz63XIeo5uTzc5n3Elf7Y13VVZGIM8Pilp3LpBu70/nGQPu anKYDB3aa1U5cfl+cTK5lOtUxN7Fu0a2Uv0ApIlC1qA8CjDZqlu7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PfSWRUfQRF+g+9ohPgYkH+1nqH3V PtGSw1kgLOqxZQTVPEcAMhSflt9LSJETIQQByKKh1e5RvOuApwBFmQq3syRhzqv/ j2b6t3IqAB9WR5TnoYkdUtTWM9MGubiFl5B9uH5EHWAlFF8h760U7Xp9m1J3qTyH EJqjfGj2SP2DK5cisuWOWdPy5aSqT7ZKrcKeSTDUyiHclI1ygFHue8oO0HXqrs+k KjFdRqIKnzfY9gW/b/6gLHhBDV6BoA9w6+1Y9egOByRcVonE8zY/xMeIRgQYEQIA BgUCPECjcgAKCRDmnFh04+r7ZcyDAJ4ogYX7W4u8g+QJsksyL4Ld+dObCwCfU7hB 7I3ZgTsYwP6mr5RPjkH5PG8= =QOu8 -----END PGP PUBLIC KEY BLOCK----- __END__ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020213013507.02cd7628>