Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Text output problem

by cdarke (Prior)
on Aug 11, 2011 at 13:41 UTC ( [id://919871]=note: print w/replies, xml ) Need Help??


in reply to Text output problem

You appear to be trying to use shell pattern matching, as supported by Korn shell and Bash inside [[...]]. Perl does not support that type of pattern matching, it uses Regular Expressions.

In addition, == in Perl is used for arithmetic comparisons, eq is used for textual comparisons, and =~ is used for matches.

So:
if ($export =~ /^q.*y$|^Y/)
etc.

Log In?
Username:
Password:

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

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

    No recent polls found