Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in perlfaq5: $\ should be $/ #762

p5pRT opened this issue Oct 22, 1999 · 2 comments

Error in perlfaq5: $\ should be $/ #762

p5pRT opened this issue Oct 22, 1999 · 2 comments


Copy link

p5pRT commented Oct 22, 1999

Migrated from (status was 'resolved')

Searchable as RT1686$

Copy link

p5pRT commented Oct 22, 1999


pod/perlfaq5.html#How_can_I_read_in_a_file_by_para says​:

How can I read in a file by paragraphs?

Use the $\ variable (see the perlvar manpage for details). You can either
set it to "" to eliminate
empty paragraphs ("abc\n\n\n\ndef", for instance, gets treated as two
paragraphs and not
three), or "\n\n" to accept empty paragraphs.

Duhhh - $\ is, according to the perlvar manpage (and my
experience) the _output_ record separator, not input!

It's also a bit ambiguous when the page is rendered in html whether the
first string is "" or " " (i.e. without or with a space betwen the quotes.
The text could address this e.g. "set it to "" (note​: no space between
the quotes) to eliminate ..... ".

Perl Info

Site configuration information for perl 5.00404:

Configured by scinfo at Fri Feb 20 18:55:47 GMT 1998.

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
    osname=solaris, osvers=2.5, archname=sun4-solaris
    uname='sunos sunm2 5.5 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=n useperlio=undef d_sfio=undef
    cc='gcc', optimize='-O', gccversion=2.4.5
    ccflags =''
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G'

Locally applied patches:

@INC for perl 5.00404:

Environment for perl 5.00404:
    LANG (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Copy link

p5pRT commented Oct 26, 1999

From [Unknown Contact. See original ticket]

This typo is corrected in the current Perl version (perl5.005_03).

Mike Guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant