Re: <> tag in perl
RSummersJr@xxxxxxxxx wrote:
> I'm looking over some code and I found an if statement that used the
> "<>" tag. Does anyone know what that means?
<> is not a "tag" in Perl. It is the read-line operator. It reads
one line from the enclosed filehandle, and returns it. An empty <>
operator has additional magic in that it opens the first file from the
command line and begins reading that. Once the first file is
exhausted, the next file is opened, and so on. If there are no files
on the command line, an empty <> reads from STDIN.
perldoc -f readline
perldoc perlop
Paul Lalli
.
Relevant Pages
- Re: Great SWT Program
... into another command. ... Also, brats with single digit ages, single digit IQs, AND single digit ... If it picks the first file in the ... directly above) which implies that it doesn't pick the first file in ... (comp.lang.java.programmer) - coreutils-7.1 released [stable]
... or run this command from a git-cloned coreutils directory: ... Add extended attribute support available on certain filesystems like ext2 ... from overwriting any existing destination file ... processing the first file name, unless the list of names is known ... (gnu.announce) - Re: shell
... If there is only one file name on the command line, grep doesn't ... otherwise the first file of the expansion will become the search string! ... etc (the first listing the files found, the second listing and then having that list passed as the list of the files to edit using vi). ... (alt.linux) - Changing datafile size.
... I have tablespace that consist of two datafiles. ... I want to decrease size of the first file. ... Oracle automatically move data to the empty file? ... (comp.databases.oracle.server) - Re: Changing datafile size.
... hub wrote: ... I want to decrease size of the first file. ... Oracle automatically move data to the empty file? ... (comp.databases.oracle.server) |
|