Some Perl Special Variables
Some Global Special Variables
7 of 28 : [
PREV
] [
NEXT
]
$/ ($INPUT_RECORD_SEPARATOR or $RS)
contains the default input and pattern-searching string
handy for temporary pattern matching and loop variables
Default value is the newline character.
{
local $/ = undef;
$file = <FH>;
}
Note that the contents of $/ is what
chomp()
will remove.
© 2004 Barbie
barbie@missbarbell.co.uk
Home
http://birmingham.pm.org/