Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Finding the Length of a Sequence File

However, because odd even.pl contains a line using operator to read from standard input, the command can also be written in the following way  [Pg.435]

The file name unsorted. txt is now being passed to the script as an argument and not as standard input. When is used, it looks for any filenames on the command line, opens them, and reads from them a line at a time. If no files are mentioned on the command line, reads from standard input. This feature can be used to process multiple files at once as well, reading from each of the files mentioned on the command line as is they were all a single, continuous file. Macintosh users, who do not have a command line available to them, can still take advantage of this feature. When a Perl script is saved as a droplet, text files can be dragged and dropped on top of its icon. Each of the dropped text files will be passed to for reading. [Pg.435]

A built-in function named length is invoked to determine the length of the line once the terminal newline is removed. When the script is done, it prints out the ultimate values of length and lines  [Pg.436]


See other pages where Finding the Length of a Sequence File is mentioned: [Pg.435]    [Pg.435]   


SEARCH



Sequence length

© 2024 chempedia.info