CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [mauto] how to delete file: Edit Log



Jean
User


Jul 23, 2002, 6:48 AM


Views: 6706
Re: [mauto] how to delete file

Two options:

1. Ignore the first line of the file no matter what - just put the <FILE>; line right after open() call (not very nice, but it does what you need)

2. Ignore ALL lines that begin with the pound sign ('#') - add the next if $file =~ /^\s*#/; as a first line of the while block (much nicer solution) and allows for additional comments. Of course you will have to begin all your comment lines (including the first one) with the pound sign...


Jean Spector
SQA Engineer @ Exanet
jean.spector@softhome.net


There are only 10 types of people in the world -
Those who understand binary, and those who don't.


(This post was edited by Jean on Jul 23, 2002, 6:54 AM)


Edit Log:
Post edited by Jean (User) on Jul 23, 2002, 6:50 AM
Post edited by Jean (User) on Jul 23, 2002, 6:51 AM
Post edited by Jean (User) on Jul 23, 2002, 6:54 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives