Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: This is not a pipe

by Zaxo (Archbishop)
on Mar 12, 2005 at 08:55 UTC ( [id://438891]=note: print w/replies, xml ) Need Help??


in reply to Re: This is not a pipe
in thread This is not a pipe

Or, taking "this" to be $_ as we do, -p and print, print q m n'est pas une pipem, $/; (yes, I mean that ;-)

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^3: This is not a pipe
by belg4mit (Prior) on Mar 12, 2005 at 12:29 UTC
    It's too late now, but if perl had added a special syntax of m!! to indicate a negated match we could use m!\|!. As it is we have a modified form of one of sfink's suggestions: $_ !~ m/\|/.

    Also, what about?

    pipe(STDIN, STDOUT); #Optional: $|--, print STDOUT "This is not a pipe\n" ne <STDIN>;

    --
    I'm not belgian but I play one on TV. On dit que je parle comme un belge aussi.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found