>
> No, the Input Record Separator ($/) can only hold one string.
> However, your records are actually separated by "\n\n", so setting $/
> to "\n\n" and then chomp'ing the record will give you
..
No, it does n't work for me. I noticed there are some empty lines in
the 'comments' field. Let's say
On Sun, 2007-07-08 at 15:43 -0700, Paul Lalli wrote:
> On Jul 8, 1:25 pm, [EMAIL PROTECTED] (Kilaru Rajeev) wrote:
> > On 7/8/07, Ken Foskey <[EMAIL PROTECTED]> wrote:
> > > On Sun, 2007-07-08 at 22:27 +0530, kilaru rajeev wrote:
> > > > Please explain me whats wrong with the following code as it i
On Jul 8, 1:25 pm, [EMAIL PROTECTED] (Kilaru Rajeev) wrote:
> On 7/8/07, Ken Foskey <[EMAIL PROTECTED]> wrote:
> > On Sun, 2007-07-08 at 22:27 +0530, kilaru rajeev wrote:
> > > Please explain me whats wrong with the following code as it is
> > > respondingwith the some errors.
>
> > > #!/usr/bin/pe
it is varl <- L and var1 <- 1, isn't it?
looks like a typo.
HTH
On Sun, 8 Jul 2007 20:38:43 +0200
xavier mas <[EMAIL PROTECTED]> wrote:
> > Name "main::varl" used only once: possible typo at sample.pl line 3.
> > Name "main::var1" used only once: possible typo at sample.pl line 2.
--
To unsubs
El Domingo 08 Julio 2007 19:25, kilaru rajeev escribió:
> Hi Ken,
>
> I have removed the *strict.* But, got the output like this:
>
> Name "main::varl" used only once: possible typo at sample.pl line 3.
> Name "main::var1" used only once: possible typo at sample.pl line 2.
> Use of uninitialized va
Hi Ken,
I have removed the *strict.* But, got the output like this:
Name "main::varl" used only once: possible typo at sample.pl line 3.
Name "main::var1" used only once: possible typo at sample.pl line 2.
Use of uninitialized value in concatenation (.) or string at sample.pl line
3.
Thanks,
Raj
On Sun, 2007-07-08 at 22:27 +0530, kilaru rajeev wrote:
> Hi,
>
> Please explain me whats wrong with the following code as it is
> respondingwith the some errors.
>
> #!/usr/bin/perl -w
> use strict;
# Since you are use strict you must declare all variables before using #
them. This prevents t
Hi,
Please explain me whats wrong with the following code as it is
respondingwith the some errors.
#!/usr/bin/perl -w
use strict;
$var1 = 'Hello World'; # always wanted to do that :-)
$var2 = "$var1\n";
print $var2;
exit;
output:
Global symbol "$var1" requires explicit package name at sample.pl