I have buried my Perl book and have it guarded by many layers of traps :)

That all being said, this would be a great thing to capture into a role, so
it's abstracted away and other people can use it, and then the complexity
is reduced.

Our Galaxy site is launching next week so this might be a good one to think
about including.




On Mon, Dec 9, 2013 at 3:51 AM, Jürgen Haas <[email protected]> wrote:

> Using
>
> cat /etc/passwd | perl -ane -F: 'print $F[0],"\n" if $F[2] > 499'
>
> Generates the following error message:
>
> Warning: Use of "-F" without parentheses is ambiguous at -e line 1.
> syntax error at -e line 1, near "F:"
> Execution of -e aborted due to compilation errors.
>
>
> Am Sonntag, 8. Dezember 2013 23:02:13 UTC+1 schrieb Kahlil Hodgson:
>
>> On 9 December 2013 07:22, Kahlil Hodgson <[email protected]>
>> wrote:
>> >     perl -ane -F: 'print $F[0] if $F[1] > 499'
>>
>> Arghhh! Not enough coffee. Got my index's wrong too. I should be
>>
>>     perl -ane -F: 'print $F[0],"\n" if $F[2] > 499'
>>
>> There is an open pull request for a 'capture' jinja filter that would
>> make all that unnecessary, but that should be discussed on the devel
>> list :-)
>>
>> K
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to