Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Loop Break

by ww (Bishop)
on Jan 19, 2012 at 16:33 UTC ( #948811=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    Note that "glob" splits its arguments on whitespace and treats
    each segment as separate pattern. As such, "glob("*.c *.h")"
    matches all files with a .c or .h extension. The expression
    "glob(".* *")" matchs all files in the current working
  2. or download this
    use Modern::Perl;
    for my $line(@arr) {
        say $line;
  3. or download this
    If what the angle brackets contain is a simple scalar variable (e.g., 
    +<$foo>), then that variable contains the name of the filehandle to in
    +put from, or its typeglob, or a reference to the same. For example:
        $fh = \*STDIN;
        $line = <$fh>;
    If what's within the angle brackets is neither a filehandle nor a simp
    +le scalar variable containing a filehandle name, typeglob, or typeglo
    +b reference, it is interpreted as a filename pattern to be globbed, a
    +nd either a list of filenames or the next filename in the list is ret
    +urned, depending on context.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948811]
[GotToBTru]: same here Corion.
[Corion]: I tried for a short time (well, 8 hours now) to get Perl::Tidy set up but then found that it doesn't support (new-style) signatures and then stopped again ;))
[GotToBTru]: changing the font color of the rest of the document just because I typed a single quote character is annoying

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-02-27 12:53 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.