From: Ninja Li on 4 Mar 2010 13:00 Hi, I saw the following code about splitting a file into several pieces: perl -014pe 'open(STDOUT,">fred.$.")' fred I couldn't find what -014 means. Please advise. Thanks in advance. Nick
From: sln on 4 Mar 2010 13:28 On Thu, 4 Mar 2010 10:00:31 -0800 (PST), Ninja Li <nickli2000(a)gmail.com> wrote: >Hi, > > I saw the following code about splitting a file into several pieces: > > perl -014pe 'open(STDOUT,">fred.$.")' fred > > I couldn't find what -014 means. Please advise. > > Thanks in advance. > > Nick perl -h Usage: ..... -0[octal] specify record separator (\0, if no argument)
From: Jim Gibson on 4 Mar 2010 14:40 In article <9919d605-26f7-4aac-9e01-8d7cd33362f0(a)i25g2000yqm.googlegroups.com>, Ninja Li <nickli2000(a)gmail.com> wrote: > Hi, > > I saw the following code about splitting a file into several pieces: > > perl -014pe 'open(STDOUT,">fred.$.")' fred > > I couldn't find what -014 means. Please advise. See 'perldoc perlrun': "Switches include: -0[octal/hexadecimal] specifies the input record separator ($/) as an octal or hexadecimal number. " -- Jim Gibson
From: Ninja Li on 4 Mar 2010 14:54 Thanks all for your help.
|
Pages: 1 Prev: FAQ 7.13 What's a closure? Next: Is there a "poor man's" perldoc? |