Hi All,
Can you please let me know the following snippset? why it is used for?
select( STDERR );
$| = 1;
select( STDOUT );
$| = 1;
print STDERR "\nThis is india\n\n";
print STDERR "Usage: This is build";
print STDERR "where: base PL label\n";
and second question
second ques
jitendra B wrote:
Hi All,
Hello,
Can you please let me know the following snippset? why it is used for?
select( STDERR );
Select STDERR as the default filehandle.
$| = 1;
Turn on autoflush for the current default filehandle.
(Redundant because STDERR autoflushes by default.)
selec
On Tue, 9 Jul 2013 13:24:54 +0530
jitendra B wrote:
> Can you please let me know the following snippset? why it is used for?
>
>
> select( STDERR );
Change the default file handle use by `print` and `say` to STDERR. The
default file handle is use when no file handle is specified. Example:
See below
> Hi All,
>
>
> Can you please let me know the following snippset? why it is used for?
>
>
> select( STDERR );
> $| = 1;
> select( STDOUT );
> $| = 1;
> print STDERR "\nThis is india\n\n";
> print STDERR "Usage: This is build";
> print STDERR "where: base PL label\n";
>
> and second
On Tue, Jul 9, 2013 at 9:37 AM, Nathan Hilterbrand wrote:
> I want to open a file read+write mode and change
> > the
> > some content in same file without creating another file and copy to it.
>
You might want to look at the perl "in place mode" [1], so something like
perl -i.bak -pe ' s/BLR/ban
Thank you very much Andy, Nathan, Shawn for your kind help.
I am new to the perl. Why auto-flush is needed here (STDERR autoflushes)?
It will free the memory or something else.
Regards,
Jitendra
On Tue, Jul 9, 2013 at 9:10 PM, Andy Bach wrote:
>
> On Tue, Jul 9, 2013 at 9:37 AM, Nathan Hilt
On Sun, Jul 7, 2013 at 9:18 PM, Shawn H Corey wrote:
> I am creating a utility module and will be posting about it on my blog.
So far it seems to me much more a configuration setup than an
"utility module", but we'll see.
However, once you have something more complete please push it to some
repo