Re: Perl defined variables

2003-12-24 Thread William Martell
Message - From: "Perl" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 23, 2003 7:04 PM Subject: Perl defined variables > Hi, > could anybody please illustrate with an example the > use of the following variables : > > $/ > $* >

Perl defined variables

2003-12-23 Thread Perl
Hi, could anybody please illustrate with an example the use of the following variables : $/ $* or more specifically here is the code i have. what exactly would the following accomplish ? $/ = "Begin"; $* = 1 ; while (<>) { if (/$pattern/){ print; } } my understanding is $/ = "Beg