|
|
Choosing A Webhost: |
Re: [SPOILER] Perl Quiz of the Week #24 (Turing Machine simulation): msg#00168lang.perl.qotw.discuss
On Fri, Sep 17, 2004 at 04:06:57PM +0200, Jurgen Pletinckx wrote: > I am somewhat befuddled by the behaviour of $. in my 'die' > clause at line 46 - this reports the last line number of the > program file, rather than the current line, as I would expect > it to. Anyone care to clue me in? This: for (<PROG>) { reads in the entire file before starting the loop. You should use: while (<PROG>) { instead. Ronald
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SPOILER] Perl Quiz of the Week #24 (Turing Machine simulation), Jurgen Pletinckx |
|---|---|
| Next by Date: | [SPOILER] Perl Quiz of the Week #24 (Turing Machine simulation), Abhinav Modi |
| Previous by Thread: | [SPOILER] Perl Quiz of the Week #24 (Turing Machine simulation), Jurgen Pletinckx |
| Next by Thread: | RE: [SPOILER] Perl Quiz of the Week #24 (Turing Machine simulation), Jurgen Pletinckx |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |