Re: binmode and <>
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 02:36:16 +0200
jl_post@xxxxxxxxxxx schreef:
Running the following perl one-liner:
perl -ne "BEGIN{binmode(ARGV)} print length" blah.txt
prints "1", meaning that it didn't properly read the two bytes as two
separate characters, since the binmode(ARGV) didn't "take."
With "warnings" activated:
$ perl -wne "BEGIN{binmode ARGV} 1" < /dev/null
binmode() on unopened filehandle ARGV at -e line 1.
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- binmode and <>
- From: Larry
- Re: binmode and <>
- From: Larry
- Re: binmode and <>
- From: Dr.Ruud
- Re: binmode and <>
- From: Larry
- Re: binmode and <>
- From: DJ Stunks
- Re: binmode and <>
- From: jl_post@xxxxxxxxxxx
- binmode and <>
- Prev by Date: Re: binmode and <>
- Next by Date: Re: can someone unban me from freenode irc? #perl ?
- Previous by thread: Re: binmode and <>
- Next by thread: Re: binmode and <>
- Index(es):
Relevant Pages
|