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

Closed
p5pRT opened this issue Oct 22, 1999 · 2 comments
Closed

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

p5pRT opened this issue Oct 22, 1999 · 2 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Oct 22, 1999

Migrated from rt.perl.org#1686 (status was 'resolved')

Searchable as RT1686$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Oct 22, 1999

From scinfo@reading.ac.uk

pod/perlfaq5.html#How_can_I_read_in_a_file_by_para says​:

<quote>
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.
</quote>

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:
  Platform:
    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
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.4.5
    cppflags=''
    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/libc.so, 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:
	/export/sunm2_exec_1/sun4/opt/gnu/lib/perl5/sun4-solaris/5.00404
	/export/sunm2_exec_1/sun4/opt/gnu/lib/perl5
	/export/sunm2_exec_1/sun4/opt/gnu/lib/perl5/site_perl/sun4-solaris
	/export/sunm2_exec_1/sun4/opt/gnu/lib/perl5/site_perl
	.


Environment for perl 5.00404:
    HOME=/home/sunm2/scinfo
    LANG (unset)
    LD_LIBRARY_PATH=/usr/X11/lib:/usr/openwin/lib
    LOGDIR (unset)
    PATH=/usr/X11/bin:/usr/ixi/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/usr/openwin/demo:/usr/gnu/bin:/usr/local:/usr/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:.:~/bin:/usr/local/bin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/tcsh

@p5pRT
Copy link
Author

@p5pRT 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant